yinbentan
2024-07-12 cdf1e74e60dd3bd214081577f25805ffee921b83
docs/docs.go
@@ -1,5 +1,4 @@
// Code generated by swaggo/swag. DO NOT EDIT.
// Package docs Code generated by swaggo/swag. DO NOT EDIT
package docs
import "github.com/swaggo/swag"
@@ -201,6 +200,36 @@
                }
            }
        },
        "/api-jl/v1/attendance/getTemplate": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "考勤管理"
                ],
                "summary": "获取模版列表",
                "parameters": [
                    {
                        "description": "参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.TemplateCategoryRequest"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "$ref": "#/definitions/util.Response"
                        }
                    }
                }
            }
        },
        "/api-jl/v1/attendance/saveAttendanceRule": {
            "post": {
                "produces": [
@@ -369,7 +398,7 @@
                    }
                }
            },
            "post": {
            "put": {
                "produces": [
                    "application/json"
                ],
@@ -379,13 +408,20 @@
                "summary": "纤度检验修改",
                "parameters": [
                    {
                        "description": "字典信息",
                        "description": "参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/models.FinenessCheck"
                            "$ref": "#/definitions/response.FinenessCheckInfo"
                        }
                    },
                    {
                        "type": "string",
                        "description": "token",
                        "name": "Authorization",
                        "in": "header",
                        "required": true
                    }
                ],
                "responses": {
@@ -751,6 +787,95 @@
                        "schema": {
                            "$ref": "#/definitions/request.YieldRegisterInfo"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "$ref": "#/definitions/util.Response"
                        }
                    }
                }
            }
        },
        "/api-jl/v1/forms/salaryReportForms": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "报表管理"
                ],
                "summary": "获取薪资报表",
                "parameters": [
                    {
                        "description": "参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.SalaryReportForms"
                        }
                    },
                    {
                        "type": "string",
                        "description": "token",
                        "name": "Authorization",
                        "in": "header",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/util.ResponseList"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/definitions/response.SalaryReportForms"
                                            }
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/api-jl/v1/forms/updateSalaryReportForms": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "报表管理"
                ],
                "summary": "修改薪资报表",
                "parameters": [
                    {
                        "description": "参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.UpdateSalaryReportForms"
                        }
                    },
                    {
                        "type": "string",
                        "description": "token",
                        "name": "Authorization",
                        "in": "header",
                        "required": true
                    }
                ],
                "responses": {
@@ -1353,6 +1478,53 @@
                }
            }
        },
        "/api-jl/v1/system/getAutoCode": {
            "get": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "系统设置/字典"
                ],
                "summary": "获取自动编码",
                "parameters": [
                    {
                        "type": "string",
                        "description": "token",
                        "name": "Authorization",
                        "in": "header",
                        "required": true
                    },
                    {
                        "type": "integer",
                        "description": "类型",
                        "name": "type",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/util.Response"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "additionalProperties": true
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/api-jl/v1/system/getCarAndLevel": {
            "post": {
                "produces": [
@@ -1674,7 +1846,7 @@
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/definitions/models.WorkshopManage"
                                                "$ref": "#/definitions/response.WorkshopManage"
                                            }
                                        }
                                    }
@@ -1756,20 +1928,20 @@
                "summary": "保存车间管理",
                "parameters": [
                    {
                        "description": "参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/models.WorkshopManage"
                        }
                    },
                    {
                        "type": "string",
                        "description": "token",
                        "name": "Authorization",
                        "in": "header",
                        "required": true
                    },
                    {
                        "description": "参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.AddWorkshopManage"
                        }
                    }
                ],
                "responses": {
@@ -2255,18 +2427,15 @@
            "type": "integer",
            "enum": [
                1,
                2,
                3
                2
            ],
            "x-enum-comments": {
                "AllCar": "全车结束",
                "LeftHalfCar": "左半车",
                "RightHalfCar": "右半车"
            },
            "x-enum-varnames": [
                "LeftHalfCar",
                "RightHalfCar",
                "AllCar"
                "RightHalfCar"
            ]
        },
        "constvar.CheckItem": {
@@ -2314,6 +2483,21 @@
                "DictTypeSpec"
            ]
        },
        "constvar.FileTemplateCategory": {
            "type": "integer",
            "enum": [
                1,
                2
            ],
            "x-enum-comments": {
                "FileTemplateCategory_Output": "出库",
                "FileTemplateCategory_Selfmade": "入库-自制"
            },
            "x-enum-varnames": [
                "FileTemplateCategory_Selfmade",
                "FileTemplateCategory_Output"
            ]
        },
        "constvar.MiniDictType": {
            "type": "integer",
            "enum": [
@@ -2324,9 +2508,12 @@
                5,
                6,
                7,
                8
                8,
                9,
                10
            ],
            "x-enum-comments": {
                "Absenteeism": "缺勤",
                "EarlyWarningDay": "预警天数",
                "InspectionWayType": "质检方式类型",
                "MiniDictTypeBomVersionType": "Bom版本类型",
@@ -2334,7 +2521,8 @@
                "OutsourcingSupplierCreditGrade": "信用等级",
                "OutsourcingSupplierRange": "供货范围",
                "OutsourcingSupplierType": "委外供应商类型",
                "SalaryType": "嘉联薪资类型"
                "SalaryType": "嘉联薪资类型",
                "WildSilk": "野纤"
            },
            "x-enum-varnames": [
                "MiniDictTypePlcBrand",
@@ -2344,7 +2532,9 @@
                "OutsourcingSupplierType",
                "OutsourcingSupplierCreditGrade",
                "OutsourcingSupplierRange",
                "SalaryType"
                "SalaryType",
                "WildSilk",
                "Absenteeism"
            ]
        },
        "constvar.WorkerStatus": {
@@ -2366,6 +2556,21 @@
                "WorkerStatusRest",
                "WorkerStatusHoliday",
                "WorkerStatusOvertime"
            ]
        },
        "constvar.WorkshopType": {
            "type": "integer",
            "enum": [
                1,
                2
            ],
            "x-enum-comments": {
                "Group": "分组信息",
                "Workshop": "车间信息"
            },
            "x-enum-varnames": [
                "Workshop",
                "Group"
            ]
        },
        "gorm.DeletedAt": {
@@ -2415,6 +2620,9 @@
                },
                "overTimeDuration": {
                    "type": "number"
                },
                "phoneNum": {
                    "type": "string"
                },
                "startWorkTime": {
                    "type": "string"
@@ -2705,11 +2913,11 @@
                    "type": "integer"
                },
                "market": {
                    "description": "庄口",
                    "description": "庄口名称",
                    "type": "string"
                },
                "name": {
                    "description": "车间",
                "marketNumber": {
                    "description": "庄口编号",
                    "type": "string"
                },
                "number": {
@@ -2740,6 +2948,14 @@
                "workshopGroup": {
                    "description": "车组",
                    "type": "integer"
                },
                "workshopName": {
                    "description": "车间名称",
                    "type": "string"
                },
                "workshopNumber": {
                    "description": "车间编号",
                    "type": "string"
                }
            }
        },
@@ -2876,10 +3092,14 @@
                    "type": "string"
                },
                "salaryFormula": {
                    "description": "SalaryType    string            ` + "`" + `json:\"salaryType\" gorm:\"type:varchar(255);comment:薪资类型\"` + "`" + `",
                    "type": "string"
                },
                "salaryType": {
                    "type": "string"
                    "$ref": "#/definitions/models.MiniDict"
                },
                "salaryTypeId": {
                    "type": "integer"
                },
                "updatedAt": {
                    "type": "string"
@@ -2935,6 +3155,9 @@
            "properties": {
                "addPeople": {
                    "type": "string"
                },
                "deletedAt": {
                    "$ref": "#/definitions/gorm.DeletedAt"
                },
                "employmentTime": {
                    "type": "string"
@@ -3032,13 +3255,16 @@
            "type": "object",
            "properties": {
                "carFlag": {
                    "$ref": "#/definitions/constvar.CarFlag"
                    "type": "integer"
                },
                "createdAt": {
                    "type": "string"
                },
                "deletedAt": {
                    "$ref": "#/definitions/gorm.DeletedAt"
                },
                "endCarHalf": {
                    "$ref": "#/definitions/constvar.CarFlag"
                },
                "endCarNumber": {
                    "type": "integer"
@@ -3052,8 +3278,22 @@
                "notes": {
                    "type": "string"
                },
                "parentID": {
                    "type": "string"
                },
                "startCarHalf": {
                    "$ref": "#/definitions/constvar.CarFlag"
                },
                "startCarNumber": {
                    "type": "integer"
                },
                "type": {
                    "description": "类型(1车间、2分组)",
                    "allOf": [
                        {
                            "$ref": "#/definitions/constvar.WorkshopType"
                        }
                    ]
                },
                "updatedAt": {
                    "type": "string"
@@ -3314,10 +3554,6 @@
                    "description": "庄口",
                    "type": "string"
                },
                "name": {
                    "description": "车间",
                    "type": "string"
                },
                "number": {
                    "description": "编号",
                    "type": "string"
@@ -3345,6 +3581,12 @@
                "workshopGroup": {
                    "description": "车组",
                    "type": "integer"
                },
                "workshopName": {
                    "type": "string"
                },
                "workshopNumber": {
                    "type": "string"
                }
            }
        },
@@ -3408,6 +3650,68 @@
                },
                "workshopName": {
                    "description": "车间名称",
                    "type": "string"
                }
            }
        },
        "request.AddWorkshopManage": {
            "type": "object",
            "properties": {
                "carFlag": {
                    "type": "integer"
                },
                "createdAt": {
                    "type": "string"
                },
                "deletedAt": {
                    "$ref": "#/definitions/gorm.DeletedAt"
                },
                "details": {
                    "description": "车间信息",
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/models.WorkshopManage"
                    }
                },
                "endCarHalf": {
                    "$ref": "#/definitions/constvar.CarFlag"
                },
                "endCarNumber": {
                    "type": "integer"
                },
                "groupNumber": {
                    "type": "integer"
                },
                "id": {
                    "type": "integer"
                },
                "notes": {
                    "type": "string"
                },
                "parentID": {
                    "type": "string"
                },
                "startCarHalf": {
                    "$ref": "#/definitions/constvar.CarFlag"
                },
                "startCarNumber": {
                    "type": "integer"
                },
                "type": {
                    "description": "类型(1车间、2分组)",
                    "allOf": [
                        {
                            "$ref": "#/definitions/constvar.WorkshopType"
                        }
                    ]
                },
                "updatedAt": {
                    "type": "string"
                },
                "workshopName": {
                    "type": "string"
                },
                "workshopNumber": {
                    "type": "string"
                }
            }
@@ -3506,6 +3810,9 @@
        "request.GetAttendanceStatistic": {
            "type": "object",
            "properties": {
                "keyword": {
                    "type": "string"
                },
                "month": {
                    "description": "月份",
                    "type": "string"
@@ -3606,6 +3913,10 @@
                "workshopName": {
                    "description": "车间名称",
                    "type": "string"
                },
                "workshopNumber": {
                    "description": "车间编号",
                    "type": "string"
                }
            }
        },
@@ -3683,6 +3994,25 @@
                }
            }
        },
        "request.SalaryReportForms": {
            "type": "object",
            "properties": {
                "keyword": {
                    "type": "string"
                },
                "month": {
                    "type": "string"
                },
                "page": {
                    "description": "页码",
                    "type": "integer"
                },
                "pageSize": {
                    "description": "每页大小",
                    "type": "integer"
                }
            }
        },
        "request.SalaryType": {
            "type": "object",
            "properties": {
@@ -3705,6 +4035,9 @@
        "request.SalaryTypeValue": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer"
                },
                "isDefault": {
                    "description": "是否可编辑",
                    "type": "boolean"
@@ -3726,16 +4059,44 @@
                }
            }
        },
        "request.TemplateCategoryRequest": {
            "type": "object",
            "properties": {
                "category": {
                    "$ref": "#/definitions/constvar.FileTemplateCategory"
                }
            }
        },
        "request.UpdateAttendance": {
            "type": "object",
            "properties": {
                "classes": {
                    "description": "班次",
                    "type": "string"
                },
                "classesEndTime": {
                    "description": "班次下班时间",
                    "type": "string"
                },
                "classesStartTime": {
                    "description": "班次开始时间",
                    "type": "string"
                },
                "date": {
                    "description": "日期",
                    "type": "string"
                },
                "endWorkTime": {
                    "description": "下班打卡时间",
                    "type": "string"
                },
                "overTimeDuration": {
                    "description": "加班时长",
                    "type": "number"
                },
                "startWorkTime": {
                    "description": "上班打卡时间",
                    "type": "string"
                },
                "status": {
                    "description": "状态",
@@ -3745,8 +4106,16 @@
                        }
                    ]
                },
                "workTypeId": {
                    "description": "工种id",
                    "type": "integer"
                },
                "workerId": {
                    "description": "人员id",
                    "type": "string"
                },
                "workerName": {
                    "description": "人员姓名",
                    "type": "string"
                }
            }
@@ -3795,6 +4164,23 @@
                },
                "workerId": {
                    "description": "工人ID",
                    "type": "string"
                }
            }
        },
        "request.UpdateSalaryReportForms": {
            "type": "object",
            "properties": {
                "amount": {
                    "type": "number"
                },
                "month": {
                    "type": "string"
                },
                "salaryTypeId": {
                    "type": "integer"
                },
                "workerId": {
                    "type": "string"
                }
            }
@@ -4049,9 +4435,29 @@
        "response.AttendanceDetail": {
            "type": "object",
            "properties": {
                "classes": {
                    "description": "班次",
                    "type": "string"
                },
                "classesEndTime": {
                    "description": "班次下班时间",
                    "type": "string"
                },
                "classesStartTime": {
                    "description": "班次开始时间",
                    "type": "string"
                },
                "date": {
                    "description": "日期",
                    "type": "integer"
                },
                "endWorkTime": {
                    "description": "下班打卡时间",
                    "type": "string"
                },
                "startWorkTime": {
                    "description": "上班打卡时间",
                    "type": "string"
                },
                "status": {
                    "description": "状态",
@@ -4060,6 +4466,10 @@
                            "$ref": "#/definitions/constvar.AttendanceStatus"
                        }
                    ]
                },
                "weekDay": {
                    "description": "星期",
                    "type": "string"
                }
            }
        },
@@ -4107,6 +4517,10 @@
                "workType": {
                    "description": "工种",
                    "type": "string"
                },
                "workTypeId": {
                    "description": "工种id",
                    "type": "integer"
                },
                "workerId": {
                    "description": "人员id",
@@ -4209,6 +4623,117 @@
                }
            }
        },
        "response.SalaryDetail": {
            "type": "object",
            "properties": {
                "amount": {
                    "description": "工资值",
                    "type": "number"
                },
                "salaryType": {
                    "description": "薪资类型",
                    "type": "string"
                },
                "salaryTypeId": {
                    "description": "薪资类型id",
                    "type": "integer"
                }
            }
        },
        "response.SalaryReportForms": {
            "type": "object",
            "properties": {
                "details": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/response.SalaryDetail"
                    }
                },
                "issueSalary": {
                    "description": "应发工资",
                    "type": "number"
                },
                "phone": {
                    "type": "string"
                },
                "remark": {
                    "description": "备注",
                    "type": "string"
                },
                "workType": {
                    "description": "工种",
                    "type": "string"
                },
                "workerId": {
                    "type": "string"
                },
                "workerName": {
                    "type": "string"
                }
            }
        },
        "response.WorkshopManage": {
            "type": "object",
            "properties": {
                "carFlag": {
                    "type": "integer"
                },
                "createdAt": {
                    "type": "string"
                },
                "deletedAt": {
                    "$ref": "#/definitions/gorm.DeletedAt"
                },
                "details": {
                    "description": "车间信息",
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/models.WorkshopManage"
                    }
                },
                "endCarHalf": {
                    "$ref": "#/definitions/constvar.CarFlag"
                },
                "endCarNumber": {
                    "type": "integer"
                },
                "groupNumber": {
                    "type": "integer"
                },
                "id": {
                    "type": "integer"
                },
                "notes": {
                    "type": "string"
                },
                "parentID": {
                    "type": "string"
                },
                "startCarHalf": {
                    "$ref": "#/definitions/constvar.CarFlag"
                },
                "startCarNumber": {
                    "type": "integer"
                },
                "type": {
                    "description": "类型(1车间、2分组)",
                    "allOf": [
                        {
                            "$ref": "#/definitions/constvar.WorkshopType"
                        }
                    ]
                },
                "updatedAt": {
                    "type": "string"
                },
                "workshopName": {
                    "type": "string"
                },
                "workshopNumber": {
                    "type": "string"
                }
            }
        },
        "util.Response": {
            "type": "object",
            "properties": {