From ae6883ce426727efca4facab973d814ae66c69c2 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期五, 11 八月 2023 16:50:08 +0800 Subject: [PATCH] Merge branch 'master' of ssh://192.168.5.5:29418/aps/crm --- docs/swagger.yaml | 322 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 320 insertions(+), 2 deletions(-) diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 2a99e5b..fb21e1c 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -264,6 +264,18 @@ type: string x-enum-varnames: - ServiceOrderQueryClassExpireLessThen60Days + constvar.ServiceOrderStatusKeywordType: + enum: + - "" + type: string + x-enum-varnames: + - ServiceOrderStatusKeywordCustomerName + constvar.ServiceOrderStatusQueryClass: + enum: + - "" + type: string + x-enum-varnames: + - ServiceOrderStatusQueryClassExpireLessThen60Days constvar.UserType: enum: - 1 @@ -450,6 +462,39 @@ id: type: integer name: + type: string + type: object + model.CollectionProjection: + properties: + created_at: + description: |- + The date when the item was created + example: 2023-08-10 15:48:25 + type: string + creator: + type: integer + deleted_at: + description: |- + The date when the item was deleted + example: 2023-08-10 15:48:25 + type: string + estimated_collection_amount: + type: number + estimated_collection_date: + type: string + id: + description: |- + The ID of the item + example: 1 + type: integer + modifier: + type: integer + sale_chance_id: + type: integer + updated_at: + description: |- + The date when the item was last updated + example: 2023-08-10 15:48:25 type: string type: object model.Contact: @@ -933,6 +978,10 @@ type: integer number: type: string + products: + items: + $ref: '#/definitions/model.Product' + type: array quotation_status_id: type: integer sale_chance: @@ -1042,6 +1091,10 @@ $ref: '#/definitions/model.Client' client_id: type: integer + collection_projections: + items: + $ref: '#/definitions/model.CollectionProjection' + type: array competitors: type: string contact: @@ -1360,6 +1413,8 @@ $ref: '#/definitions/model.Client' clientId: type: integer + contact: + $ref: '#/definitions/model.Contact' contactId: type: integer endTime: @@ -1494,10 +1549,12 @@ description: 棰勭害涓婇棬鏃堕棿 type: string carFare: - description: 浜ら�氳垂 + description: 浜ら�氳垂 // + 浜ら�氳垂 type: number chargeAmount: - description: 鏀惰垂閲戦 + description: 鏀惰垂閲戦 // + 鏀惰垂閲戦 type: number client: $ref: '#/definitions/model.Client' @@ -1564,6 +1621,8 @@ serviceNumber: description: 鏈嶅姟鍗曠紪鍙� type: string + serviceOrderStatus: + $ref: '#/definitions/model.ServiceOrderStatus' serviceType: $ref: '#/definitions/model.ServiceType' serviceTypeId: @@ -1588,6 +1647,13 @@ timeSpentId: description: 鑺辫垂鏃堕棿 type: integer + type: object + model.ServiceOrderStatus: + properties: + id: + type: integer + name: + type: string type: object model.ServiceType: properties: @@ -1843,6 +1909,18 @@ type: string required: - name + type: object + request.AddCollectionProjection: + properties: + estimated_collection_amount: + description: 棰勮鏀舵閲戦 + type: number + estimated_collection_time: + description: 棰勮鏀舵鏃堕棿 + type: string + sale_chance_id: + description: 閿�鍞満浼歩d + type: integer type: object request.AddContact: properties: @@ -2152,6 +2230,10 @@ type: integer number: type: string + products: + items: + $ref: '#/definitions/model.Product' + type: array quotation_status_id: type: integer sale_chance_id: @@ -2678,6 +2760,13 @@ timeSpentId: description: 鑺辫垂鏃堕棿 type: integer + type: object + request.AddServiceOrderStatus: + properties: + id: + type: integer + name: + type: string type: object request.AddServiceType: properties: @@ -3276,6 +3365,16 @@ subOrderId: type: integer type: object + request.PushSaleChance: + properties: + id: + type: integer + step: + type: integer + required: + - id + - step + type: object request.PushSalesLeads: properties: id: @@ -3634,6 +3733,17 @@ type: array required: - client_types + type: object + request.UpdateCollectionProjection: + properties: + estimated_collection_amount: + description: 棰勮鏀舵閲戦 + type: number + estimated_collection_time: + description: 棰勮鏀舵鏃堕棿 + type: string + id: + type: integer type: object request.UpdateContact: properties: @@ -4080,6 +4190,10 @@ type: integer number: type: string + products: + items: + $ref: '#/definitions/model.Product' + type: array quotation_status_id: type: integer sale_chance_id: @@ -4786,6 +4900,13 @@ timeSpentId: description: 鑺辫垂鏃堕棿 type: integer + type: object + request.UpdateServiceOrderStatus: + properties: + id: + type: integer + name: + type: string type: object request.UpdateServiceType: properties: @@ -6248,6 +6369,83 @@ summary: 鏇存柊瀹㈡埛绫诲瀷 tags: - ClientType + /api/collectionProjection/add: + post: + parameters: + - description: 鏌ヨ鍙傛暟 + in: body + name: object + required: true + schema: + $ref: '#/definitions/request.AddCollectionProjection' + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/contextx.Response' + summary: 娣诲姞鏀舵棰勬祴 + tags: + - CollectionProjection + /api/collectionProjection/delete/{id}: + delete: + parameters: + - description: 鏌ヨ鍙傛暟 + in: path + name: id + required: true + type: integer + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/contextx.Response' + summary: 鍒犻櫎鏀舵棰勬祴 + tags: + - CollectionProjection + /api/collectionProjection/list: + post: + parameters: + - description: 椤电爜 + in: query + name: page + type: integer + - description: 姣忛〉澶у皬 + in: query + name: pageSize + type: integer + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/contextx.Response' + summary: 鑾峰彇鏀舵棰勬祴鍒楄〃 + tags: + - CollectionProjection + /api/collectionProjection/update: + put: + parameters: + - description: 鏌ヨ鍙傛暟 + in: body + name: object + required: true + schema: + $ref: '#/definitions/request.UpdateCollectionProjection' + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/contextx.Response' + summary: 鏇存柊鏀舵棰勬祴 + tags: + - CollectionProjection /api/contact/add: post: parameters: @@ -9340,6 +9538,25 @@ summary: 閿�鍞満浼氬垪琛� tags: - SaleChance + /api/saleChance/push: + put: + parameters: + - description: 鏌ヨ鍙傛暟 + in: body + name: object + required: true + schema: + $ref: '#/definitions/request.PushSaleChance' + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/contextx.Response' + summary: 鎺ㄨ繘閿�鍞満浼� + tags: + - SaleChance /api/saleChance/update: put: parameters: @@ -10615,6 +10832,107 @@ summary: 鏇存柊鏈嶅姟鍗� tags: - 鏈嶅姟鍗曠鐞� + /api/serviceOrderStatus/add: + post: + parameters: + - description: 鏌ヨ鍙傛暟 + in: body + name: object + required: true + schema: + $ref: '#/definitions/request.AddServiceOrderStatus' + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/contextx.Response' + summary: 娣诲姞鏈嶅姟鍗曠姸鎬� + tags: + - 鏈嶅姟鍗曠姸鎬� + /api/serviceOrderStatus/delete/{id}: + delete: + parameters: + - description: 鏌ヨ鍙傛暟 + in: path + name: id + required: true + type: integer + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/contextx.Response' + summary: 鍒犻櫎鏈嶅姟鍗曠姸鎬� + tags: + - 鏈嶅姟鍗曠姸鎬� + /api/serviceOrderStatus/list: + get: + parameters: + - in: query + name: keyword + type: string + - enum: + - "" + in: query + name: keywordType + type: string + x-enum-varnames: + - ServiceOrderStatusKeywordCustomerName + - description: 椤电爜 + in: query + name: page + type: integer + - description: 姣忛〉澶у皬 + in: query + name: pageSize + type: integer + - enum: + - "" + in: query + name: queryClass + type: string + x-enum-varnames: + - ServiceOrderStatusQueryClassExpireLessThen60Days + produces: + - application/json + responses: + "200": + description: OK + schema: + allOf: + - $ref: '#/definitions/response.ListResponse' + - properties: + data: + items: + $ref: '#/definitions/model.ServiceOrderStatus' + type: array + type: object + summary: 鑾峰彇鏈嶅姟鍗曠姸鎬佸垪琛� + tags: + - 鏈嶅姟鍗曠姸鎬� + /api/serviceOrderStatus/update: + put: + parameters: + - description: 鏌ヨ鍙傛暟 + in: body + name: object + required: true + schema: + $ref: '#/definitions/request.UpdateServiceOrderStatus' + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/contextx.Response' + summary: 鏇存柊鏈嶅姟鍗曠姸鎬� + tags: + - 鏈嶅姟鍗曠姸鎬� /api/serviceType/add: post: parameters: -- Gitblit v1.8.0