From 0f7dbc99a9e0c0678d458e2f8f60df52f7fdb3d1 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期四, 29 二月 2024 20:14:00 +0800 Subject: [PATCH] 添加纤度登记接口支持修改纤度登记 --- docs/docs.go | 555 ++++++++++++++++++++++++++++++++++++++++++++++++++---- 1 files changed, 506 insertions(+), 49 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index 491292f..b085057 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,159 @@ } } }, - "/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/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 +257,110 @@ } } }, + "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": [ + { + "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/savePriceStandard": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "绯荤粺璁剧疆/鐢熶笣瀹氫环鏍囧噯" + ], + "summary": "淇濆瓨鐢熶笣瀹氫环鏍囧噯", + "parameters": [ + { + "description": "鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/models.RawSilkPriceStandard" } } ], @@ -152,58 +376,219 @@ } }, "definitions": { - "models.Department": { + "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": { + "type": "number" + }, + "finenessRegisterID": { + "type": "integer" + }, + "id": { + "type": "integer" + }, + "position": { + "type": "integer" + }, + "quantity": { + "type": "number" + }, + "sum": { + "type": "number" + }, + "updatedAt": { + "type": "string" + } + } + }, + "models.FinenessRegister": { + "type": "object", + "properties": { + "createdAt": { + "type": "string" + }, + "deletedAt": { + "$ref": "#/definitions/gorm.DeletedAt" + }, + "endCircle": { + "description": "缁撴潫鍥炴暟", + "type": "integer" + }, + "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": "鎺掑簭", + "startCircle": { + "description": "寮�濮嬪洖鏁�", "type": "integer" + }, + "sumFineness": { + "type": "number" + }, + "sumQuantity": { + "type": "number" + }, + "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" + } + } + }, + "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,23 +596,97 @@ } } }, - "request.UpdateDepartment": { + "request.AddFinenessRegister": { "type": "object", "properties": { + "endCircle": { + "description": "缁撴潫鍥炴暟", + "type": "integer" + }, + "finenessList": { + "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" + }, + "startCircle": { + "description": "寮�濮嬪洖鏁�", + "type": "integer" + }, + "sumFineness": { + "type": "number" + }, + "sumQuantity": { + "type": "number" + }, + "workshopGroup": { + "description": "杞︾粍", + "type": "string" + } + } + }, + "request.FinenessItem": { + "type": "object", + "properties": { + "fineness": { + "type": "number" + }, + "position": { + "type": "integer" + }, + "quantity": { + "type": "number" + }, + "sum": { + "type": "number" + } + } + }, + "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": "澶囨敞", @@ -263,9 +722,7 @@ "pageSize": { "type": "integer" }, - "total": { - "type": "integer" - } + "total": {} } } } -- Gitblit v1.8.0