| | |
| | | } |
| | | } |
| | | }, |
| | | "/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": [ |
| | |
| | | } |
| | | } |
| | | }, |
| | | "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": { |
| | |
| | | } |
| | | } |
| | | }, |
| | | "request.AddMentorRequest": { |
| | | "type": "object", |
| | | "properties": { |
| | | "days": { |
| | | "description": "天数", |
| | | "type": "integer" |
| | | }, |
| | | "month": { |
| | | "description": "月份", |
| | | "type": "string" |
| | | }, |
| | | "workerId": { |
| | | "description": "工人ID", |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | | "request.ChangeYieldRegister": { |
| | | "type": "object", |
| | | "properties": { |
| | |
| | | } |
| | | } |
| | | }, |
| | | "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": { |
| | |
| | | "request.GetWorkTypeList": { |
| | | "type": "object", |
| | | "properties": { |
| | | "keyWord": { |
| | | "keyword": { |
| | | "type": "string" |
| | | }, |
| | | "page": { |
| | |
| | | "request.GetWorkerList": { |
| | | "type": "object", |
| | | "properties": { |
| | | "keyWord": { |
| | | "keyword": { |
| | | "type": "string" |
| | | }, |
| | | "page": { |
| | |
| | | } |
| | | } |
| | | }, |
| | | "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": { |