From 4aa17acbb43449389f248732c77d9e9752e240a8 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期二, 12 三月 2024 19:35:32 +0800 Subject: [PATCH] Merge branch 'master' of http://192.168.5.5:10010/r/silk/silkServer --- docs/docs.go | 1000 +++++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 951 insertions(+), 49 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index 491292f..0b5baf6 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -16,15 +16,15 @@ "host": "{{.Host}}", "basePath": "{{.BasePath}}", "paths": { - "/api-s/v1/organize/department": { + "/api-jl/v1/fineness/register": { "get": { "produces": [ "application/json" ], "tags": [ - "閮ㄩ棬淇℃伅" + "绾ゅ害鐧昏" ], - "summary": "鏌ヨ閮ㄩ棬淇℃伅鍒楄〃", + "summary": "绾ゅ害鐧昏鍒楄〃", "parameters": [ { "type": "integer", @@ -53,7 +53,7 @@ "data": { "type": "array", "items": { - "$ref": "#/definitions/models.Department" + "$ref": "#/definitions/models.FinenessRegister" } } } @@ -68,17 +68,17 @@ "application/json" ], "tags": [ - "閮ㄩ棬淇℃伅" + "绾ゅ害鐧昏" ], - "summary": "娣诲姞閮ㄩ棬淇℃伅", + "summary": "绾ゅ害鐧昏娣诲姞", "parameters": [ { - "description": "閮ㄩ棬淇℃伅淇℃伅", + "description": "瀛楀吀淇℃伅", "name": "object", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/request.AddDepartment" + "$ref": "#/definitions/request.AddFinenessRegister" } } ], @@ -92,23 +92,215 @@ } } }, - "/api-s/v1/organize/department/{id}": { + "/api-jl/v1/fineness/register/{id}": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "绾ゅ害鐧昏" + ], + "summary": "绾ゅ害鐧昏璇︽儏", + "parameters": [ + { + "type": "string", + "description": "瀛楀吀淇℃伅", + "name": "id", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/util.ResponseList" + }, + { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/models.FinenessRegister" + } + } + } + ] + } + } + } + }, + "delete": { + "produces": [ + "application/json" + ], + "tags": [ + "绾ゅ害鐧昏" + ], + "summary": "绾ゅ害鐧昏鍒犻櫎", + "parameters": [ + { + "type": "string", + "description": "瀛楀吀淇℃伅", + "name": "id", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "$ref": "#/definitions/util.Response" + } + } + } + } + }, + "/api-jl/v1/system/deletePriceStandard/{id}": { + "delete": { + "produces": [ + "application/json" + ], + "tags": [ + "绯荤粺璁剧疆/鐢熶笣瀹氫环鏍囧噯" + ], + "summary": "鍒犻櫎鐢熶笣瀹氫环鏍囧噯", + "parameters": [ + { + "type": "string", + "description": "id", + "name": "id", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "$ref": "#/definitions/util.Response" + } + } + } + } + }, + "/api-jl/v1/system/deleteWorkshopManage/{id}": { + "delete": { + "produces": [ + "application/json" + ], + "tags": [ + "绯荤粺璁剧疆/杞﹂棿绠$悊" + ], + "summary": "鍒犻櫎杞﹂棿绠$悊", + "parameters": [ + { + "type": "string", + "description": "id", + "name": "id", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "$ref": "#/definitions/util.Response" + } + } + } + } + }, + "/api-jl/v1/system/dict": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "绯荤粺璁剧疆/瀛楀吀" + ], + "summary": "鏌ヨ瀛楀吀鍒楄〃", + "parameters": [ + { + "enum": [ + 0, + 1, + 2, + 3 + ], + "type": "integer", + "x-enum-comments": { + "DictTypeColor": "棰滆壊", + "DictTypeMarket": "搴勫彛", + "DictTypeSpec": "瑙勬牸", + "DictTypeWorkshop": "杞﹂棿" + }, + "x-enum-varnames": [ + "DictTypeMarket", + "DictTypeWorkshop", + "DictTypeColor", + "DictTypeSpec" + ], + "description": "瀛楀吀绫诲瀷", + "name": "dictType", + "in": "query" + }, + { + "type": "integer", + "description": "椤电爜", + "name": "page", + "in": "query" + }, + { + "type": "integer", + "description": "姣忛〉澶у皬", + "name": "pageSize", + "in": "query" + } + ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/util.ResponseList" + }, + { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/models.Dict" + } + } + } + } + ] + } + } + } + }, "put": { "produces": [ "application/json" ], "tags": [ - "閮ㄩ棬淇℃伅" + "绯荤粺璁剧疆/瀛楀吀" ], - "summary": "缂栬緫閮ㄩ棬淇℃伅", + "summary": "缂栬緫瀛楀吀", "parameters": [ { - "description": "閮ㄩ棬淇℃伅淇℃伅", + "description": "瀛楀吀淇℃伅", "name": "object", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/request.UpdateDepartment" + "$ref": "#/definitions/request.UpdateDict" } } ], @@ -121,22 +313,280 @@ } } }, + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "绯荤粺璁剧疆/瀛楀吀" + ], + "summary": "娣诲姞瀛楀吀", + "parameters": [ + { + "description": "瀛楀吀淇℃伅", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.AddDict" + } + } + ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "$ref": "#/definitions/util.Response" + } + } + } + } + }, + "/api-jl/v1/system/dict/{id}": { "delete": { "produces": [ "application/json" ], "tags": [ - "閮ㄩ棬淇℃伅" + "绯荤粺璁剧疆/瀛楀吀" ], - "summary": "缂栬緫閮ㄩ棬淇℃伅", + "summary": "鍒犻櫎瀛楀吀", "parameters": [ { - "description": "閮ㄩ棬淇℃伅淇℃伅", + "type": "string", + "description": "瀛楀吀淇℃伅", + "name": "id", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "$ref": "#/definitions/util.Response" + } + } + } + } + }, + "/api-jl/v1/system/getPriceStandardList": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "绯荤粺璁剧疆/鐢熶笣瀹氫环鏍囧噯" + ], + "summary": "鑾峰彇鐢熶笣瀹氫环鏍囧噯", + "parameters": [ + { + "type": "string", + "name": "keyWord", + "in": "query" + }, + { + "type": "integer", + "description": "椤电爜", + "name": "page", + "in": "query" + }, + { + "type": "integer", + "description": "姣忛〉澶у皬", + "name": "pageSize", + "in": "query" + } + ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/util.ResponseList" + }, + { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/models.RawSilkPriceStandard" + } + } + } + } + ] + } + } + } + } + }, + "/api-jl/v1/system/getRankStandard": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "绯荤粺璁剧疆/鐢熶笣瀹氱骇鏍囧噯" + ], + "summary": "鑾峰彇鐢熶笣瀹氱骇鏍囧噯", + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/util.ResponseList" + }, + { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/response.RankStandard" + } + } + } + } + ] + } + } + } + } + }, + "/api-jl/v1/system/getWorkshopManageList": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "绯荤粺璁剧疆/杞﹂棿绠$悊" + ], + "summary": "鑾峰彇杞﹂棿绠$悊鍒楄〃", + "parameters": [ + { + "type": "string", + "name": "keyWord", + "in": "query" + }, + { + "type": "integer", + "description": "椤电爜", + "name": "page", + "in": "query" + }, + { + "type": "integer", + "description": "姣忛〉澶у皬", + "name": "pageSize", + "in": "query" + } + ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/util.ResponseList" + }, + { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/models.WorkshopManage" + } + } + } + } + ] + } + } + } + } + }, + "/api-jl/v1/system/savePriceStandard": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "绯荤粺璁剧疆/鐢熶笣瀹氫环鏍囧噯" + ], + "summary": "淇濆瓨鐢熶笣瀹氫环鏍囧噯", + "parameters": [ + { + "description": "鍙傛暟", "name": "object", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/request.UpdateDepartment" + "$ref": "#/definitions/models.RawSilkPriceStandard" + } + } + ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "$ref": "#/definitions/util.Response" + } + } + } + } + }, + "/api-jl/v1/system/saveRankStandard": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "绯荤粺璁剧疆/鐢熶笣瀹氱骇鏍囧噯" + ], + "summary": "淇濆瓨鐢熶笣瀹氱骇鏍囧噯", + "parameters": [ + { + "description": "鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.SaveRankStandard" + } + } + ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "$ref": "#/definitions/util.Response" + } + } + } + } + }, + "/api-jl/v1/system/saveWorkshopManage": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "绯荤粺璁剧疆/杞﹂棿绠$悊" + ], + "summary": "淇濆瓨杞﹂棿绠$悊", + "parameters": [ + { + "description": "鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/models.WorkshopManage" } } ], @@ -152,58 +602,300 @@ } }, "definitions": { - "models.Department": { + "constvar.CarFlag": { + "type": "integer", + "enum": [ + 1, + 2, + 3 + ], + "x-enum-comments": { + "AllCar": "鍏ㄨ溅", + "LeftHalfCar": "宸﹀崐杞�", + "RightHalfCar": "鍙冲崐杞�" + }, + "x-enum-varnames": [ + "LeftHalfCar", + "RightHalfCar", + "AllCar" + ] + }, + "constvar.CheckItem": { + "type": "integer", + "enum": [ + 1, + 2, + 3, + 4, + 5 + ], + "x-enum-comments": { + "CheckItemCleanliness": "娓呮磥鍒�", + "CheckItemDeviation": "绾ゅ害鍋忓樊", + "CheckItemMaxDeviation": "鏈�澶у亸宸�", + "CheckItemPurity": "娲佸噣鍒�", + "CheckItemTwiceChange": "浜屾鍙樺寲" + }, + "x-enum-varnames": [ + "CheckItemDeviation", + "CheckItemTwiceChange", + "CheckItemCleanliness", + "CheckItemPurity", + "CheckItemMaxDeviation" + ] + }, + "constvar.DictType": { + "type": "integer", + "enum": [ + 0, + 1, + 2, + 3 + ], + "x-enum-comments": { + "DictTypeColor": "棰滆壊", + "DictTypeMarket": "搴勫彛", + "DictTypeSpec": "瑙勬牸", + "DictTypeWorkshop": "杞﹂棿" + }, + "x-enum-varnames": [ + "DictTypeMarket", + "DictTypeWorkshop", + "DictTypeColor", + "DictTypeSpec" + ] + }, + "gorm.DeletedAt": { "type": "object", "properties": { - "children": { + "time": { + "type": "string" + }, + "valid": { + "description": "Valid is true if Time is not NULL", + "type": "boolean" + } + } + }, + "models.Dict": { + "type": "object", + "properties": { + "createdAt": { + "type": "string" + }, + "deletedAt": { + "$ref": "#/definitions/gorm.DeletedAt" + }, + "dictType": { + "description": "瀛楀吀绫诲瀷", + "allOf": [ + { + "$ref": "#/definitions/constvar.DictType" + } + ] + }, + "id": { + "type": "integer" + }, + "name": { + "description": "鍚嶇О", + "type": "string" + }, + "number": { + "description": "缂栧彿", + "type": "string" + }, + "remark": { + "description": "澶囨敞", + "type": "string" + }, + "updatedAt": { + "type": "string" + } + } + }, + "models.FinenessItem": { + "type": "object", + "properties": { + "createdAt": { + "type": "string" + }, + "deletedAt": { + "$ref": "#/definitions/gorm.DeletedAt" + }, + "fineness": { + "description": "绾ゅ害", + "type": "number" + }, + "finenessRegisterID": { + "type": "integer" + }, + "id": { + "type": "integer" + }, + "position": { + "description": "杞﹀彿", + "type": "integer" + }, + "quantity": { + "description": "鏁伴噺", + "type": "number" + }, + "sum": { + "description": "绾ゅ害鍚堣", + "type": "number" + }, + "updatedAt": { + "type": "string" + } + } + }, + "models.FinenessRegister": { + "type": "object", + "properties": { + "circle": { + "description": "鍥炴暟", + "type": "integer" + }, + "createdAt": { + "type": "string" + }, + "deletedAt": { + "$ref": "#/definitions/gorm.DeletedAt" + }, + "finenessList": { "type": "array", "items": { - "$ref": "#/definitions/models.Department" + "$ref": "#/definitions/models.FinenessItem" } }, - "head": { - "description": "閮ㄩ棬璐熻矗浜�", + "finishDate": { + "description": "钀戒笣鏃堕棿", "type": "string" }, "id": { "type": "integer" }, + "market": { + "description": "搴勫彛", + "type": "string" + }, "name": { - "description": "閮ㄩ棬鍚嶇О", + "description": "杞﹂棿", "type": "string" }, "number": { - "description": "閮ㄩ棬缂栧彿", + "description": "缂栧彿", "type": "string" }, - "parentId": { - "description": "涓婄骇閮ㄩ棬ID", - "type": "integer" - }, - "remark": { - "description": "澶囨敞", + "spec": { + "description": "瑙勬牸", "type": "string" }, - "sort": { - "description": "鎺掑簭", + "sumFineness": { + "type": "number" + }, + "sumQuantity": { + "type": "number" + }, + "totalCircle": { + "description": "鎬诲洖鏁�", "type": "integer" + }, + "updatedAt": { + "type": "string" + }, + "workshopGroup": { + "description": "杞︾粍", + "type": "string" } } }, - "request.AddDepartment": { + "models.RawSilkPriceStandard": { "type": "object", "properties": { + "createdAt": { + "type": "string" + }, + "deletedAt": { + "$ref": "#/definitions/gorm.DeletedAt" + }, + "id": { + "type": "integer" + }, + "marketNumber": { + "type": "string" + }, + "notes": { + "type": "string" + }, + "payStandard": { + "type": "number" + }, + "rawSilkGradeNumber": { + "type": "string" + }, + "unit": { + "type": "string" + }, + "updatedAt": { + "type": "string" + } + } + }, + "models.WorkshopManage": { + "type": "object", + "properties": { + "carFlag": { + "$ref": "#/definitions/constvar.CarFlag" + }, + "createdAt": { + "type": "string" + }, + "deletedAt": { + "$ref": "#/definitions/gorm.DeletedAt" + }, + "endCarNumber": { + "type": "integer" + }, + "groupNumber": { + "type": "integer" + }, + "id": { + "type": "integer" + }, + "notes": { + "type": "string" + }, + "startCarNumber": { + "type": "integer" + }, + "updatedAt": { + "type": "string" + }, + "workshopNumber": { + "type": "string" + } + } + }, + "request.AddDict": { + "type": "object", + "properties": { + "dictType": { + "description": "瀛楀吀绫诲瀷", + "allOf": [ + { + "$ref": "#/definitions/constvar.DictType" + } + ] + }, "name": { - "description": "閮ㄩ棬鍚嶇О", + "description": "鍚嶇О", "type": "string" }, "number": { - "description": "閮ㄩ棬缂栧彿", + "description": "缂栫爜", "type": "string" - }, - "parentId": { - "description": "涓婄骇閮ㄩ棬ID 涓�绾ч儴闂ㄤ紶0", - "type": "integer" }, "remark": { "description": "澶囨敞", @@ -211,27 +903,239 @@ } } }, - "request.UpdateDepartment": { + "request.AddFinenessRegister": { "type": "object", "properties": { + "circle": { + "description": "鍥炴暟", + "type": "integer" + }, + "finenessList": { + "description": "绾ゅ害鏁扮粍", + "type": "array", + "items": { + "$ref": "#/definitions/request.FinenessItem" + } + }, + "finishDate": { + "description": "钀戒笣鏃堕棿", + "type": "string" + }, + "id": { + "description": "id 娣诲姞鏃朵紶0", + "type": "integer" + }, + "market": { + "description": "搴勫彛", + "type": "string" + }, + "name": { + "description": "杞﹂棿", + "type": "string" + }, + "number": { + "description": "缂栧彿", + "type": "string" + }, + "spec": { + "description": "瑙勬牸", + "type": "string" + }, + "sumFineness": { + "description": "鍚堣绾ゅ害", + "type": "number" + }, + "sumQuantity": { + "description": "鍚堣鏁伴噺", + "type": "number" + }, + "totalCircle": { + "description": "鎬诲洖鏁�", + "type": "integer" + }, + "workshopGroup": { + "description": "杞︾粍", + "type": "string" + } + } + }, + "request.DynamicsRank": { + "type": "object", + "properties": { + "rankName": { + "description": "绛夌骇鍚嶇О", + "type": "string" + }, + "rankProp": { + "description": "鍓嶇紑key", + "type": "string" + }, + "rankValue": { + "description": "绛夌骇鍊�", + "type": "number" + } + } + }, + "request.FinenessItem": { + "type": "object", + "properties": { + "fineness": { + "description": "绾ゅ害", + "type": "number" + }, + "position": { + "description": "杞﹀彿", + "type": "integer" + }, + "quantity": { + "description": "鏁伴噺", + "type": "number" + }, + "sum": { + "description": "鍚堣", + "type": "number" + } + } + }, + "request.RankStandard": { + "type": "object", + "properties": { + "checkItem": { + "description": "妫�鏌ラ」鐩悕绉�", + "allOf": [ + { + "$ref": "#/definitions/constvar.CheckItem" + } + ] + }, + "dynamicsRanks": { + "type": "array", + "items": { + "$ref": "#/definitions/request.DynamicsRank" + } + }, + "endFineness": { + "description": "缁撴潫绾ゅ害", + "type": "number" + }, + "lineId": { + "description": "琛宨d", + "type": "string" + }, + "rankA": { + "description": "閲庣氦", + "type": "number" + }, + "rankB": { + "description": "澶ч噹", + "type": "number" + }, + "rankC": { + "description": "鐗归噹", + "type": "number" + }, + "startFineness": { + "description": "寮�濮嬬氦搴�", + "type": "number" + } + } + }, + "request.SaveRankStandard": { + "type": "object", + "properties": { + "rankStandard": { + "type": "array", + "items": { + "$ref": "#/definitions/request.RankStandard" + } + } + } + }, + "request.UpdateDict": { + "type": "object", + "properties": { + "dictType": { + "description": "瀛楀吀绫诲瀷", + "allOf": [ + { + "$ref": "#/definitions/constvar.DictType" + } + ] + }, "id": { "type": "integer" }, "name": { - "description": "閮ㄩ棬鍚嶇О", + "description": "鍚嶇О", "type": "string" }, "number": { - "description": "閮ㄩ棬缂栧彿", + "description": "缂栫爜", "type": "string" - }, - "parentId": { - "description": "涓婄骇閮ㄩ棬ID 涓�绾ч儴闂ㄤ紶0", - "type": "integer" }, "remark": { "description": "澶囨敞", "type": "string" + } + } + }, + "response.DynamicsRank": { + "type": "object", + "properties": { + "rankName": { + "description": "绛夌骇鍚嶇О", + "type": "string" + }, + "rankProp": { + "description": "鍓嶇紑key", + "type": "string" + }, + "rankValue": { + "description": "绛夌骇鍊�", + "type": "number" + } + } + }, + "response.RankStandard": { + "type": "object", + "properties": { + "checkItem": { + "description": "妫�鏌ラ」鐩悕绉�", + "allOf": [ + { + "$ref": "#/definitions/constvar.CheckItem" + } + ] + }, + "dynamicsRanks": { + "type": "array", + "items": { + "$ref": "#/definitions/response.DynamicsRank" + } + }, + "endFineness": { + "description": "缁撴潫绾ゅ害", + "type": "number" + }, + "lineId": { + "description": "琛宨d", + "type": "string" + }, + "rankA": { + "description": "閲庣氦", + "type": "number" + }, + "rankB": { + "description": "澶ч噹", + "type": "number" + }, + "rankC": { + "description": "鐗归噹", + "type": "number" + }, + "startFineness": { + "description": "寮�濮嬬氦搴�", + "type": "number" } } }, @@ -263,9 +1167,7 @@ "pageSize": { "type": "integer" }, - "total": { - "type": "integer" - } + "total": {} } } } -- Gitblit v1.8.0