| | |
| | | } |
| | | } |
| | | }, |
| | | "/api-jl/v1/attendance/updateAttendance": { |
| | | "post": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "考勤管理" |
| | | ], |
| | | "summary": "更新考勤", |
| | | "parameters": [ |
| | | { |
| | | "description": "参数", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.UpdateAttendance" |
| | | } |
| | | }, |
| | | { |
| | | "type": "string", |
| | | "description": "token", |
| | | "name": "Authorization", |
| | | "in": "header", |
| | | "required": true |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/util.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api-jl/v1/fineness/changeYieldRegister": { |
| | | "post": { |
| | | "produces": [ |
| | |
| | | "id": { |
| | | "type": "integer" |
| | | }, |
| | | "name": { |
| | | "description": "车间", |
| | | "type": "string" |
| | | }, |
| | | "startDate": { |
| | | "description": "开始日期", |
| | | "type": "string" |
| | |
| | | "description": "工人ID", |
| | | "type": "string" |
| | | }, |
| | | "workshop": { |
| | | "description": "车间编号", |
| | | "type": "string" |
| | | }, |
| | | "workshopGroup": { |
| | | "description": "车组", |
| | | "type": "integer" |
| | | }, |
| | | "workshopName": { |
| | | "description": "车间名称", |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | |
| | | "startWorkerPosition", |
| | | "workerId", |
| | | "workshop", |
| | | "workshopGroup" |
| | | "workshopGroup", |
| | | "workshopName" |
| | | ], |
| | | "properties": { |
| | | "endDate": { |
| | |
| | | "type": "string" |
| | | }, |
| | | "workshop": { |
| | | "description": "车间", |
| | | "description": "车间编号", |
| | | "type": "string" |
| | | }, |
| | | "workshopGroup": { |
| | | "description": "车组", |
| | | "type": "integer" |
| | | }, |
| | | "workshopName": { |
| | | "description": "车间名称", |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | |
| | | } |
| | | } |
| | | }, |
| | | "request.UpdateAttendance": { |
| | | "type": "object", |
| | | "properties": { |
| | | "date": { |
| | | "description": "日期", |
| | | "type": "string" |
| | | }, |
| | | "overTimeDuration": { |
| | | "description": "加班时长", |
| | | "type": "number" |
| | | }, |
| | | "status": { |
| | | "description": "状态", |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/constvar.AttendanceStatus" |
| | | } |
| | | ] |
| | | }, |
| | | "workerId": { |
| | | "description": "人员id", |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | | "request.UpdateDict": { |
| | | "type": "object", |
| | | "properties": { |
| | |
| | | "startWorkerPosition", |
| | | "workerId", |
| | | "workshop", |
| | | "workshopGroup" |
| | | "workshopGroup", |
| | | "workshopName" |
| | | ], |
| | | "properties": { |
| | | "endDate": { |
| | |
| | | "type": "string" |
| | | }, |
| | | "workshop": { |
| | | "description": "车间", |
| | | "description": "车间编号", |
| | | "type": "string" |
| | | }, |
| | | "workshopGroup": { |
| | | "description": "车组", |
| | | "type": "integer" |
| | | }, |
| | | "workshopName": { |
| | | "description": "车间名称", |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |