From 550bd8a218224e6c73201f444387d66a299f438b Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期二, 15 八月 2023 19:56:35 +0800 Subject: [PATCH] 消费排程任务存储任务数据,给前端展示任务列表 --- docs/swagger.yaml | 120 +++++++++++++++++++++++------------------------------------ 1 files changed, 47 insertions(+), 73 deletions(-) diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 6f04fa0..d7c6fa3 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -1,18 +1,4 @@ definitions: - constvar.UserType: - enum: - - 1 - - 2 - - 3 - type: integer - x-enum-comments: - UserTypePrimary: 涓昏处鎴� - UserTypeSub: 瀛愯处鎴� - UserTypeSuper: 瓒呯骇绠$悊鍛� - x-enum-varnames: - - UserTypeSuper - - UserTypePrimary - - UserTypeSub contextx.Response: properties: code: @@ -21,60 +7,34 @@ msg: type: string type: object - model.User: + model.ScheduleTask: properties: - companyCity: + amount: + description: |- + Parameter string `json:"parameter"` //浜у搧鍚嶇О + Customer string `json:"customer"` + DeliverDate string `json:"deliverDate"` + OrderAttr string `json:"orderAttr"` + type: number + data: + description: 鎺掔▼浠诲姟json涓� type: string - companyContact: - type: string - companyEmail: - type: string - companyLogo: - type: string - companyName: - type: string - companyProvince: - type: string - companyTrade: - type: string - createAt: - description: 鍒涘缓鏃堕棿 - type: string - enable: - type: boolean - headerImage: - type: string - id: - type: string - ip: - type: string - menuIds: - description: 鑿滃崟ID鍒楄〃 - items: - type: integer - type: array - nickName: - type: string - parentId: - type: string - parentName: - type: string - phone: - type: string - port: - type: string - pos: - type: string - status: + endTime: type: integer - systemName: + id: + type: integer + orderId: + description: 璁㈠崟id type: string - updateAt: - description: 鏇存柊鏃堕棿 + productId: + description: 璁㈠崟id type: string - userType: - $ref: '#/definitions/constvar.UserType' - username: + productName: + description: 浜у搧鍚嶇О + type: string + startTime: + type: integer + unit: type: string type: object request.TaskInfo: @@ -95,15 +55,6 @@ description: 宸ュ崟 type: string type: object - response.LoginResponse: - properties: - expiresAt: - type: integer - token: - type: string - user: - $ref: '#/definitions/model.User' - type: object info: contact: {} paths: @@ -122,11 +73,34 @@ "200": description: 鎴愬姛 schema: + $ref: '#/definitions/contextx.Response' + summary: 浠诲姟寮�鍚�氱煡 + tags: + - Base + /v1/task/list: + get: + parameters: + - description: 椤电爜 + in: query + name: page + type: integer + - description: 姣忛〉澶у皬 + in: query + name: pageSize + type: integer + produces: + - application/json + responses: + "200": + description: 鎴愬姛 + schema: allOf: - $ref: '#/definitions/contextx.Response' - properties: data: - $ref: '#/definitions/response.LoginResponse' + items: + $ref: '#/definitions/model.ScheduleTask' + type: array type: object summary: 浠诲姟寮�鍚�氱煡 tags: -- Gitblit v1.8.0