liujiandao
2024-04-22 20af882d5a8b59f4c4a5645fd2e4fd4a244609f2
docs/docs.go
@@ -124,6 +124,120 @@
                }
            }
        },
        "/api-jl/v1/attendance/getAttendanceRule": {
            "get": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "考勤管理"
                ],
                "summary": "获取加班规则",
                "parameters": [
                    {
                        "type": "string",
                        "description": "token",
                        "name": "Authorization",
                        "in": "header",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "$ref": "#/definitions/util.Response"
                        }
                    }
                }
            }
        },
        "/api-jl/v1/attendance/getAttendanceStatistic": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "考勤管理"
                ],
                "summary": "获取考勤统计",
                "parameters": [
                    {
                        "description": "参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.GetAttendanceStatistic"
                        }
                    },
                    {
                        "type": "string",
                        "description": "token",
                        "name": "Authorization",
                        "in": "header",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/util.Response"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/definitions/response.AttendanceList"
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/api-jl/v1/attendance/saveAttendanceRule": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "考勤管理"
                ],
                "summary": "保存加班规则",
                "parameters": [
                    {
                        "description": "参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/models.AttendanceRule"
                        }
                    },
                    {
                        "type": "string",
                        "description": "token",
                        "name": "Authorization",
                        "in": "header",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "$ref": "#/definitions/util.Response"
                        }
                    }
                }
            }
        },
        "/api-jl/v1/fineness/changeYieldRegister": {
            "post": {
                "produces": [
@@ -2079,6 +2193,27 @@
        }
    },
    "definitions": {
        "constvar.AttendanceStatus": {
            "type": "integer",
            "enum": [
                1,
                2,
                3,
                4
            ],
            "x-enum-comments": {
                "Abnormal": "异常",
                "Normal": "正常",
                "Overtime": "加班",
                "Vacation": "休假"
            },
            "x-enum-varnames": [
                "Normal",
                "Overtime",
                "Vacation",
                "Abnormal"
            ]
        },
        "constvar.CarFlag": {
            "type": "integer",
            "enum": [
@@ -2241,17 +2376,58 @@
                "id": {
                    "type": "integer"
                },
                "overTimeDuration": {
                    "type": "number"
                },
                "startWorkTime": {
                    "type": "string"
                },
                "status": {
                    "$ref": "#/definitions/constvar.AttendanceStatus"
                },
                "updatedAt": {
                    "type": "string"
                },
                "workType": {
                    "$ref": "#/definitions/models.WorkTypeManage"
                },
                "workTypeId": {
                    "type": "integer"
                },
                "workerId": {
                    "type": "string"
                },
                "workerName": {
                    "type": "string"
                }
            }
        },
        "models.AttendanceRule": {
            "type": "object",
            "properties": {
                "createdAt": {
                    "type": "string"
                },
                "deletedAt": {
                    "$ref": "#/definitions/gorm.DeletedAt"
                },
                "id": {
                    "type": "integer"
                },
                "overTimeStart": {
                    "type": "number"
                },
                "restDayRule": {
                    "type": "integer"
                },
                "restDayStart": {
                    "type": "number"
                },
                "updatedAt": {
                    "type": "string"
                },
                "weekdayRule": {
                    "type": "integer"
                }
            }
        },
@@ -3219,6 +3395,7 @@
            "type": "object",
            "properties": {
                "ids": {
                    "description": "记录id",
                    "type": "array",
                    "items": {
                        "type": "integer"
@@ -3277,6 +3454,15 @@
                "pageSize": {
                    "description": "每页大小",
                    "type": "integer"
                }
            }
        },
        "request.GetAttendanceStatistic": {
            "type": "object",
            "properties": {
                "month": {
                    "description": "月份",
                    "type": "string"
                }
            }
        },
@@ -3784,6 +3970,78 @@
                }
            }
        },
        "response.AttendanceDetail": {
            "type": "object",
            "properties": {
                "date": {
                    "description": "日期",
                    "type": "string"
                },
                "status": {
                    "description": "状态",
                    "allOf": [
                        {
                            "$ref": "#/definitions/constvar.AttendanceStatus"
                        }
                    ]
                }
            }
        },
        "response.AttendanceList": {
            "type": "object",
            "properties": {
                "list": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/response.AttendanceStatistic"
                    }
                }
            }
        },
        "response.AttendanceStatistic": {
            "type": "object",
            "properties": {
                "actualAttendanceDays": {
                    "description": "实际出勤天数",
                    "type": "integer"
                },
                "details": {
                    "description": "详情",
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/response.AttendanceDetail"
                    }
                },
                "month": {
                    "description": "月份",
                    "type": "string"
                },
                "requiredAttendanceDays": {
                    "description": "应出勤天数",
                    "type": "integer"
                },
                "restDayOverTime": {
                    "description": "休息日加班时长",
                    "type": "number"
                },
                "weekdayOverTime": {
                    "description": "工作日加班时长",
                    "type": "number"
                },
                "workType": {
                    "description": "工种",
                    "type": "string"
                },
                "workerId": {
                    "description": "人员id",
                    "type": "string"
                },
                "workerName": {
                    "description": "人员姓名",
                    "type": "string"
                }
            }
        },
        "response.CarAndLevel": {
            "type": "object",
            "properties": {