From 632bef19cd6229014644e4394d43e95c6707d773 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期一, 22 四月 2024 11:49:36 +0800 Subject: [PATCH] 机台信息增删改查接口 --- docs/docs.go | 322 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 321 insertions(+), 1 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index fa943c2..3cceedb 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -1915,6 +1915,167 @@ } } } + }, + "/api-jl/v1/workerPosition/createWorkerPositionInfo": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "鏈哄彴绠$悊" + ], + "summary": "鍒涘缓鏈哄彴淇℃伅", + "parameters": [ + { + "description": "鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.AddWorkPositionRequest" + } + }, + { + "type": "string", + "description": "token", + "name": "Authorization", + "in": "header", + "required": true + } + ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "$ref": "#/definitions/util.Response" + } + } + } + } + }, + "/api-jl/v1/workerPosition/deleteWorkerPositionInfo/{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/workerPosition/getWorkerPositionList": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "鏈哄彴绠$悊" + ], + "summary": "鑾峰彇鏈哄彴淇℃伅鍒楄〃", + "parameters": [ + { + "description": "鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.GetWorkerPositionList" + } + }, + { + "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.WorkerPosition" + } + } + } + } + ] + } + } + } + } + }, + "/api-jl/v1/workerPosition/updateWorkerPositionInfo": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "鏈哄彴绠$悊" + ], + "summary": "鏇存柊鏈哄彴淇℃伅", + "parameters": [ + { + "description": "鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.UpdateWorkerPositionRequest" + } + }, + { + "type": "string", + "description": "token", + "name": "Authorization", + "in": "header", + "required": true + } + ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "$ref": "#/definitions/util.Response" + } + } + } + } } }, "definitions": { @@ -2409,7 +2570,7 @@ "type": "string" }, "worker": { - "description": "宸ヤ汉ID", + "description": "宸ヤ汉", "allOf": [ { "$ref": "#/definitions/models.Worker" @@ -2590,6 +2751,62 @@ "type": "string" }, "workTypeId": { + "type": "integer" + } + } + }, + "models.WorkerPosition": { + "type": "object", + "properties": { + "createdAt": { + "type": "string" + }, + "creator": { + "type": "string" + }, + "deletedAt": { + "$ref": "#/definitions/gorm.DeletedAt" + }, + "endDate": { + "description": "缁撴潫鏃ユ湡", + "type": "string" + }, + "endWorkerPosition": { + "description": "缁撴潫杞﹀彿", + "type": "integer" + }, + "id": { + "type": "integer" + }, + "name": { + "description": "杞﹂棿", + "type": "string" + }, + "startDate": { + "description": "寮�濮嬫棩鏈�", + "type": "string" + }, + "startWorkerPosition": { + "description": "寮�濮嬭溅鍙�", + "type": "integer" + }, + "updatedAt": { + "type": "string" + }, + "worker": { + "description": "宸ヤ汉", + "allOf": [ + { + "$ref": "#/definitions/models.Worker" + } + ] + }, + "workerId": { + "description": "宸ヤ汉ID", + "type": "string" + }, + "workshopGroup": { + "description": "杞︾粍", "type": "integer" } } @@ -2931,6 +3148,48 @@ } } }, + "request.AddWorkPositionRequest": { + "type": "object", + "required": [ + "endDate", + "endWorkerPosition", + "startDate", + "startWorkerPosition", + "workerId", + "workshop", + "workshopGroup" + ], + "properties": { + "endDate": { + "description": "缁撴潫鏃ユ湡", + "type": "string" + }, + "endWorkerPosition": { + "description": "缁撴潫杞﹀彿", + "type": "integer" + }, + "startDate": { + "description": "寮�濮嬫棩鏈�", + "type": "string" + }, + "startWorkerPosition": { + "description": "寮�濮嬭溅鍙�", + "type": "integer" + }, + "workerId": { + "description": "宸ヤ汉ID", + "type": "string" + }, + "workshop": { + "description": "杞﹂棿", + "type": "string" + }, + "workshopGroup": { + "description": "杞︾粍", + "type": "integer" + } + } + }, "request.ChangeYieldRegister": { "type": "object", "properties": { @@ -3070,6 +3329,22 @@ } }, "request.GetWorkerList": { + "type": "object", + "properties": { + "keyword": { + "type": "string" + }, + "page": { + "description": "椤电爜", + "type": "integer" + }, + "pageSize": { + "description": "姣忛〉澶у皬", + "type": "integer" + } + } + }, + "request.GetWorkerPositionList": { "type": "object", "properties": { "keyword": { @@ -3267,6 +3542,51 @@ } } }, + "request.UpdateWorkerPositionRequest": { + "type": "object", + "required": [ + "endDate", + "endWorkerPosition", + "startDate", + "startWorkerPosition", + "workerId", + "workshop", + "workshopGroup" + ], + "properties": { + "endDate": { + "description": "缁撴潫鏃ユ湡", + "type": "string" + }, + "endWorkerPosition": { + "description": "缁撴潫杞﹀彿", + "type": "integer" + }, + "id": { + "type": "integer" + }, + "startDate": { + "description": "寮�濮嬫棩鏈�", + "type": "string" + }, + "startWorkerPosition": { + "description": "寮�濮嬭溅鍙�", + "type": "integer" + }, + "workerId": { + "description": "宸ヤ汉ID", + "type": "string" + }, + "workshop": { + "description": "杞﹂棿", + "type": "string" + }, + "workshopGroup": { + "description": "杞︾粍", + "type": "integer" + } + } + }, "request.YieldRegisterCircleInfo": { "type": "object", "properties": { -- Gitblit v1.8.0