From c0c2661df233baafae085fb8deba14e40bd45bc5 Mon Sep 17 00:00:00 2001 From: yinbentan <yinbentan@live.com> Date: 星期五, 12 七月 2024 15:56:49 +0800 Subject: [PATCH] 产量登记表添加自动编号 --- docs/docs.go | 484 ++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 files changed, 452 insertions(+), 32 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index eb82777..d5e5cd8 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -1,5 +1,4 @@ -// Code generated by swaggo/swag. DO NOT EDIT. - +// Package docs Code generated by swaggo/swag. DO NOT EDIT package docs import "github.com/swaggo/swag" @@ -399,7 +398,7 @@ } } }, - "post": { + "put": { "produces": [ "application/json" ], @@ -409,13 +408,20 @@ "summary": "绾ゅ害妫�楠屼慨鏀�", "parameters": [ { - "description": "瀛楀吀淇℃伅", + "description": "鍙傛暟", "name": "object", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/models.FinenessCheck" + "$ref": "#/definitions/response.FinenessCheckInfo" } + }, + { + "type": "string", + "description": "token", + "name": "Authorization", + "in": "header", + "required": true } ], "responses": { @@ -781,6 +787,95 @@ "schema": { "$ref": "#/definitions/request.YieldRegisterInfo" } + } + ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "$ref": "#/definitions/util.Response" + } + } + } + } + }, + "/api-jl/v1/forms/salaryReportForms": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "鎶ヨ〃绠$悊" + ], + "summary": "鑾峰彇钖祫鎶ヨ〃", + "parameters": [ + { + "description": "鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.SalaryReportForms" + } + }, + { + "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/response.SalaryReportForms" + } + } + } + } + ] + } + } + } + } + }, + "/api-jl/v1/forms/updateSalaryReportForms": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "鎶ヨ〃绠$悊" + ], + "summary": "淇敼钖祫鎶ヨ〃", + "parameters": [ + { + "description": "鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.UpdateSalaryReportForms" + } + }, + { + "type": "string", + "description": "token", + "name": "Authorization", + "in": "header", + "required": true } ], "responses": { @@ -1383,6 +1478,53 @@ } } }, + "/api-jl/v1/system/getAutoCode": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "绯荤粺璁剧疆/瀛楀吀" + ], + "summary": "鑾峰彇鑷姩缂栫爜", + "parameters": [ + { + "type": "string", + "description": "token", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "type": "integer", + "description": "绫诲瀷", + "name": "type", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/util.Response" + }, + { + "type": "object", + "properties": { + "data": { + "type": "object", + "additionalProperties": true + } + } + } + ] + } + } + } + } + }, "/api-jl/v1/system/getCarAndLevel": { "post": { "produces": [ @@ -1704,7 +1846,7 @@ "data": { "type": "array", "items": { - "$ref": "#/definitions/models.WorkshopManage" + "$ref": "#/definitions/response.WorkshopManage" } } } @@ -1786,20 +1928,20 @@ "summary": "淇濆瓨杞﹂棿绠$悊", "parameters": [ { - "description": "鍙傛暟", - "name": "object", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/models.WorkshopManage" - } - }, - { "type": "string", "description": "token", "name": "Authorization", "in": "header", "required": true + }, + { + "description": "鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.AddWorkshopManage" + } } ], "responses": { @@ -2285,18 +2427,15 @@ "type": "integer", "enum": [ 1, - 2, - 3 + 2 ], "x-enum-comments": { - "AllCar": "鍏ㄨ溅缁撴潫", "LeftHalfCar": "宸﹀崐杞�", "RightHalfCar": "鍙冲崐杞�" }, "x-enum-varnames": [ "LeftHalfCar", - "RightHalfCar", - "AllCar" + "RightHalfCar" ] }, "constvar.CheckItem": { @@ -2369,9 +2508,12 @@ 5, 6, 7, - 8 + 8, + 9, + 10 ], "x-enum-comments": { + "Absenteeism": "缂哄嫟", "EarlyWarningDay": "棰勮澶╂暟", "InspectionWayType": "璐ㄦ鏂瑰紡绫诲瀷", "MiniDictTypeBomVersionType": "Bom鐗堟湰绫诲瀷", @@ -2379,7 +2521,8 @@ "OutsourcingSupplierCreditGrade": "淇$敤绛夌骇", "OutsourcingSupplierRange": "渚涜揣鑼冨洿", "OutsourcingSupplierType": "濮斿渚涘簲鍟嗙被鍨�", - "SalaryType": "鍢夎仈钖祫绫诲瀷" + "SalaryType": "鍢夎仈钖祫绫诲瀷", + "WildSilk": "閲庣氦" }, "x-enum-varnames": [ "MiniDictTypePlcBrand", @@ -2389,7 +2532,9 @@ "OutsourcingSupplierType", "OutsourcingSupplierCreditGrade", "OutsourcingSupplierRange", - "SalaryType" + "SalaryType", + "WildSilk", + "Absenteeism" ] }, "constvar.WorkerStatus": { @@ -2411,6 +2556,21 @@ "WorkerStatusRest", "WorkerStatusHoliday", "WorkerStatusOvertime" + ] + }, + "constvar.WorkshopType": { + "type": "integer", + "enum": [ + 1, + 2 + ], + "x-enum-comments": { + "Group": "鍒嗙粍淇℃伅", + "Workshop": "杞﹂棿淇℃伅" + }, + "x-enum-varnames": [ + "Workshop", + "Group" ] }, "gorm.DeletedAt": { @@ -2460,6 +2620,9 @@ }, "overTimeDuration": { "type": "number" + }, + "phoneNum": { + "type": "string" }, "startWorkTime": { "type": "string" @@ -2750,11 +2913,11 @@ "type": "integer" }, "market": { - "description": "搴勫彛", + "description": "搴勫彛鍚嶇О", "type": "string" }, - "name": { - "description": "杞﹂棿", + "marketNumber": { + "description": "搴勫彛缂栧彿", "type": "string" }, "number": { @@ -2785,6 +2948,14 @@ "workshopGroup": { "description": "杞︾粍", "type": "integer" + }, + "workshopName": { + "description": "杞﹂棿鍚嶇О", + "type": "string" + }, + "workshopNumber": { + "description": "杞﹂棿缂栧彿", + "type": "string" } } }, @@ -2921,10 +3092,14 @@ "type": "string" }, "salaryFormula": { + "description": "SalaryType string ` + "`" + `json:\"salaryType\" gorm:\"type:varchar(255);comment:钖祫绫诲瀷\"` + "`" + `", "type": "string" }, "salaryType": { - "type": "string" + "$ref": "#/definitions/models.MiniDict" + }, + "salaryTypeId": { + "type": "integer" }, "updatedAt": { "type": "string" @@ -2980,6 +3155,9 @@ "properties": { "addPeople": { "type": "string" + }, + "deletedAt": { + "$ref": "#/definitions/gorm.DeletedAt" }, "employmentTime": { "type": "string" @@ -3077,13 +3255,16 @@ "type": "object", "properties": { "carFlag": { - "$ref": "#/definitions/constvar.CarFlag" + "type": "integer" }, "createdAt": { "type": "string" }, "deletedAt": { "$ref": "#/definitions/gorm.DeletedAt" + }, + "endCarHalf": { + "$ref": "#/definitions/constvar.CarFlag" }, "endCarNumber": { "type": "integer" @@ -3097,8 +3278,22 @@ "notes": { "type": "string" }, + "parentID": { + "type": "string" + }, + "startCarHalf": { + "$ref": "#/definitions/constvar.CarFlag" + }, "startCarNumber": { "type": "integer" + }, + "type": { + "description": "绫诲瀷(1杞﹂棿銆�2鍒嗙粍)", + "allOf": [ + { + "$ref": "#/definitions/constvar.WorkshopType" + } + ] }, "updatedAt": { "type": "string" @@ -3359,10 +3554,6 @@ "description": "搴勫彛", "type": "string" }, - "name": { - "description": "杞﹂棿", - "type": "string" - }, "number": { "description": "缂栧彿", "type": "string" @@ -3390,6 +3581,12 @@ "workshopGroup": { "description": "杞︾粍", "type": "integer" + }, + "workshopName": { + "type": "string" + }, + "workshopNumber": { + "type": "string" } } }, @@ -3453,6 +3650,68 @@ }, "workshopName": { "description": "杞﹂棿鍚嶇О", + "type": "string" + } + } + }, + "request.AddWorkshopManage": { + "type": "object", + "properties": { + "carFlag": { + "type": "integer" + }, + "createdAt": { + "type": "string" + }, + "deletedAt": { + "$ref": "#/definitions/gorm.DeletedAt" + }, + "details": { + "description": "杞﹂棿淇℃伅", + "type": "array", + "items": { + "$ref": "#/definitions/models.WorkshopManage" + } + }, + "endCarHalf": { + "$ref": "#/definitions/constvar.CarFlag" + }, + "endCarNumber": { + "type": "integer" + }, + "groupNumber": { + "type": "integer" + }, + "id": { + "type": "integer" + }, + "notes": { + "type": "string" + }, + "parentID": { + "type": "string" + }, + "startCarHalf": { + "$ref": "#/definitions/constvar.CarFlag" + }, + "startCarNumber": { + "type": "integer" + }, + "type": { + "description": "绫诲瀷(1杞﹂棿銆�2鍒嗙粍)", + "allOf": [ + { + "$ref": "#/definitions/constvar.WorkshopType" + } + ] + }, + "updatedAt": { + "type": "string" + }, + "workshopName": { + "type": "string" + }, + "workshopNumber": { "type": "string" } } @@ -3551,6 +3810,9 @@ "request.GetAttendanceStatistic": { "type": "object", "properties": { + "keyword": { + "type": "string" + }, "month": { "description": "鏈堜唤", "type": "string" @@ -3651,6 +3913,10 @@ "workshopName": { "description": "杞﹂棿鍚嶇О", "type": "string" + }, + "workshopNumber": { + "description": "杞﹂棿缂栧彿", + "type": "string" } } }, @@ -3728,6 +3994,25 @@ } } }, + "request.SalaryReportForms": { + "type": "object", + "properties": { + "keyword": { + "type": "string" + }, + "month": { + "type": "string" + }, + "page": { + "description": "椤电爜", + "type": "integer" + }, + "pageSize": { + "description": "姣忛〉澶у皬", + "type": "integer" + } + } + }, "request.SalaryType": { "type": "object", "properties": { @@ -3750,6 +4035,9 @@ "request.SalaryTypeValue": { "type": "object", "properties": { + "id": { + "type": "integer" + }, "isDefault": { "description": "鏄惁鍙紪杈�", "type": "boolean" @@ -3876,6 +4164,23 @@ }, "workerId": { "description": "宸ヤ汉ID", + "type": "string" + } + } + }, + "request.UpdateSalaryReportForms": { + "type": "object", + "properties": { + "amount": { + "type": "number" + }, + "month": { + "type": "string" + }, + "salaryTypeId": { + "type": "integer" + }, + "workerId": { "type": "string" } } @@ -4161,6 +4466,10 @@ "$ref": "#/definitions/constvar.AttendanceStatus" } ] + }, + "weekDay": { + "description": "鏄熸湡", + "type": "string" } } }, @@ -4314,6 +4623,117 @@ } } }, + "response.SalaryDetail": { + "type": "object", + "properties": { + "amount": { + "description": "宸ヨ祫鍊�", + "type": "number" + }, + "salaryType": { + "description": "钖祫绫诲瀷", + "type": "string" + }, + "salaryTypeId": { + "description": "钖祫绫诲瀷id", + "type": "integer" + } + } + }, + "response.SalaryReportForms": { + "type": "object", + "properties": { + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/response.SalaryDetail" + } + }, + "issueSalary": { + "description": "搴斿彂宸ヨ祫", + "type": "number" + }, + "phone": { + "type": "string" + }, + "remark": { + "description": "澶囨敞", + "type": "string" + }, + "workType": { + "description": "宸ョ", + "type": "string" + }, + "workerId": { + "type": "string" + }, + "workerName": { + "type": "string" + } + } + }, + "response.WorkshopManage": { + "type": "object", + "properties": { + "carFlag": { + "type": "integer" + }, + "createdAt": { + "type": "string" + }, + "deletedAt": { + "$ref": "#/definitions/gorm.DeletedAt" + }, + "details": { + "description": "杞﹂棿淇℃伅", + "type": "array", + "items": { + "$ref": "#/definitions/models.WorkshopManage" + } + }, + "endCarHalf": { + "$ref": "#/definitions/constvar.CarFlag" + }, + "endCarNumber": { + "type": "integer" + }, + "groupNumber": { + "type": "integer" + }, + "id": { + "type": "integer" + }, + "notes": { + "type": "string" + }, + "parentID": { + "type": "string" + }, + "startCarHalf": { + "$ref": "#/definitions/constvar.CarFlag" + }, + "startCarNumber": { + "type": "integer" + }, + "type": { + "description": "绫诲瀷(1杞﹂棿銆�2鍒嗙粍)", + "allOf": [ + { + "$ref": "#/definitions/constvar.WorkshopType" + } + ] + }, + "updatedAt": { + "type": "string" + }, + "workshopName": { + "type": "string" + }, + "workshopNumber": { + "type": "string" + } + } + }, "util.Response": { "type": "object", "properties": { -- Gitblit v1.8.0