From 61bebbdb99d6c1ca95236cc567a9718bc5f5b1eb Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期五, 19 四月 2024 15:07:51 +0800 Subject: [PATCH] 带徒管理增删改查接口 --- docs/docs.go | 260 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 257 insertions(+), 3 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index 87fb0fa..46adac4 100644 --- a/docs/docs.go +++ b/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": { -- Gitblit v1.8.0