liujiandao
2024-04-19 9a6ea804cfbc209692d94602932c2a0a3b9b8e4e
docs/docs.go
@@ -504,6 +504,167 @@
                }
            }
        },
        "/api-jl/v1/mentor/createMentorInfo": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "带徒管理"
                ],
                "summary": "创建带徒信息",
                "parameters": [
                    {
                        "description": "参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.AddMentorRequest"
                        }
                    },
                    {
                        "type": "string",
                        "description": "token",
                        "name": "Authorization",
                        "in": "header",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "$ref": "#/definitions/util.Response"
                        }
                    }
                }
            }
        },
        "/api-jl/v1/mentor/deleteMentorInfo/{id}": {
            "delete": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "带徒管理"
                ],
                "summary": "删除带徒信息",
                "parameters": [
                    {
                        "type": "string",
                        "description": "id",
                        "name": "id",
                        "in": "path",
                        "required": true
                    },
                    {
                        "type": "string",
                        "description": "token",
                        "name": "Authorization",
                        "in": "header",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "$ref": "#/definitions/util.Response"
                        }
                    }
                }
            }
        },
        "/api-jl/v1/mentor/getMentorList": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "带徒管理"
                ],
                "summary": "获取带徒信息列表",
                "parameters": [
                    {
                        "description": "参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.GetMentorList"
                        }
                    },
                    {
                        "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/models.Mentor"
                                            }
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/api-jl/v1/mentor/updateMentorInfo": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "带徒管理"
                ],
                "summary": "更新带徒信息",
                "parameters": [
                    {
                        "description": "参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.UpdateMentorRequest"
                        }
                    },
                    {
                        "type": "string",
                        "description": "token",
                        "name": "Authorization",
                        "in": "header",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "$ref": "#/definitions/util.Response"
                        }
                    }
                }
            }
        },
        "/api-jl/v1/salary/deleteSalaryPlanInfo/{id}": {
            "delete": {
                "produces": [
@@ -2066,6 +2227,46 @@
                }
            }
        },
        "models.Mentor": {
            "type": "object",
            "properties": {
                "createdAt": {
                    "type": "string"
                },
                "creator": {
                    "type": "string"
                },
                "days": {
                    "description": "天数",
                    "type": "integer"
                },
                "deletedAt": {
                    "$ref": "#/definitions/gorm.DeletedAt"
                },
                "id": {
                    "type": "integer"
                },
                "month": {
                    "description": "月份",
                    "type": "string"
                },
                "updatedAt": {
                    "type": "string"
                },
                "worker": {
                    "description": "工人ID",
                    "allOf": [
                        {
                            "$ref": "#/definitions/models.Worker"
                        }
                    ]
                },
                "workerId": {
                    "description": "工人ID",
                    "type": "string"
                }
            }
        },
        "models.MiniDict": {
            "type": "object",
            "properties": {
@@ -2558,6 +2759,23 @@
                }
            }
        },
        "request.AddMentorRequest": {
            "type": "object",
            "properties": {
                "days": {
                    "description": "天数",
                    "type": "integer"
                },
                "month": {
                    "description": "月份",
                    "type": "string"
                },
                "workerId": {
                    "description": "工人ID",
                    "type": "string"
                }
            }
        },
        "request.ChangeYieldRegister": {
            "type": "object",
            "properties": {
@@ -2621,10 +2839,26 @@
                }
            }
        },
        "request.GetMentorList": {
            "type": "object",
            "properties": {
                "keyword": {
                    "type": "string"
                },
                "page": {
                    "description": "页码",
                    "type": "integer"
                },
                "pageSize": {
                    "description": "每页大小",
                    "type": "integer"
                }
            }
        },
        "request.GetSalaryPlanList": {
            "type": "object",
            "properties": {
                "keyWord": {
                "keyword": {
                    "type": "string"
                },
                "page": {
@@ -2640,7 +2874,7 @@
        "request.GetWorkTypeList": {
            "type": "object",
            "properties": {
                "keyWord": {
                "keyword": {
                    "type": "string"
                },
                "page": {
@@ -2656,7 +2890,7 @@
        "request.GetWorkerList": {
            "type": "object",
            "properties": {
                "keyWord": {
                "keyword": {
                    "type": "string"
                },
                "page": {
@@ -2831,6 +3065,26 @@
                }
            }
        },
        "request.UpdateMentorRequest": {
            "type": "object",
            "properties": {
                "days": {
                    "description": "天数",
                    "type": "integer"
                },
                "id": {
                    "type": "integer"
                },
                "month": {
                    "description": "月份",
                    "type": "string"
                },
                "workerId": {
                    "description": "工人ID",
                    "type": "string"
                }
            }
        },
        "request.YieldRegisterCircleInfo": {
            "type": "object",
            "properties": {