From e913ce7ca504a026ae418b5b73e3ff21001101a8 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期一, 14 八月 2023 17:38:03 +0800
Subject: [PATCH] update
---
docs/swagger.yaml | 427 +++++++++++++++++++++++++++++++++++++++++++++--------
1 files changed, 360 insertions(+), 67 deletions(-)
diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index 787e7f1..6f50cd2 100644
--- a/docs/swagger.yaml
+++ b/docs/swagger.yaml
@@ -142,6 +142,14 @@
- ReceiptSourceTypeInvoice
- ReceiptSourceTypeCollectionPlan
- ReceiptSourceTypeChuKuDan
+ constvar.RefundSourceType:
+ enum:
+ - 1
+ type: integer
+ x-enum-comments:
+ RefundSourceTypeSalesReturn: 閿�鍞��璐�
+ x-enum-varnames:
+ - RefundSourceTypeSalesReturn
constvar.SalesDetailsKeywordType:
enum:
- 瀹㈡埛鍚嶇О
@@ -156,6 +164,28 @@
- SalesDetailsKeywordTypeSignTime
- SalesDetailsKeywordTypePrincipal
- SalesDetailsKeywordTypeProductName
+ constvar.SalesRefundKeywordType:
+ enum:
+ - 閿�鍞��璐у崟缂栧彿
+ - 瀹㈡埛鍚嶇О
+ - 閫�娆炬棩鏈�
+ - 璐︽埛
+ - 鏄惁寮�绁�
+ - 浠樻鏂瑰紡
+ - 閿�鍞礋璐d汉
+ - 淇敼鏃堕棿
+ - 浠风◣鍚堣
+ type: string
+ x-enum-varnames:
+ - SalesRefundKeywordRefundNumber
+ - SalesRefundKeywordClientName
+ - SalesRefundKeywordRefundDate
+ - SalesRefundKeywordAccount
+ - SalesRefundKeywordIsInvoice
+ - SalesRefundKeywordPaymentType
+ - SalesRefundKeywordPrincipal
+ - SalesRefundKeywordUpdateAt
+ - SalesRefundKeywordPriceTotal
constvar.SalesReturnSourceType:
enum:
- 1
@@ -500,6 +530,39 @@
name:
type: string
type: object
+ model.CollectionProjection:
+ properties:
+ _:
+ description: |-
+ The date when the item was deleted
+ example: 2023-08-10 15:48:25
+ type: string
+ created_at:
+ description: |-
+ The date when the item was created
+ example: 2023-08-10 15:48:25
+ type: string
+ creator:
+ type: integer
+ 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:
properties:
birthday:
@@ -594,11 +657,24 @@
type: object
model.Contract:
properties:
+ _:
+ description: |-
+ The date when the item was deleted
+ example: 2023-08-10 15:48:25
+ type: string
clientId:
type: integer
+ created_at:
+ description: |-
+ The date when the item was created
+ example: 2023-08-10 15:48:25
+ type: string
file:
type: string
id:
+ description: |-
+ The ID of the item
+ example: 1
type: integer
memberId:
type: integer
@@ -610,6 +686,11 @@
type: integer
statusId:
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.Country:
properties:
@@ -635,23 +716,6 @@
type: integer
name:
type: string
- type: object
- model.CustomerServiceSheet:
- properties:
- handleStatus:
- type: integer
- id:
- type: integer
- memberId:
- type: integer
- number:
- type: string
- priority:
- type: integer
- serviceFollowupId:
- type: integer
- serviceMode:
- type: integer
type: object
model.Department:
properties:
@@ -981,6 +1045,10 @@
type: integer
number:
type: string
+ products:
+ items:
+ $ref: '#/definitions/model.Product'
+ type: array
quotation_status_id:
type: integer
sale_chance:
@@ -1002,6 +1070,8 @@
amount:
description: 鏀舵閲戦
type: number
+ bankAccount:
+ $ref: '#/definitions/model.BankAccount'
bankAccountId:
description: 璐︽埛id
type: integer
@@ -1016,9 +1086,15 @@
moneyType:
description: 甯佺
type: string
+ paymentType:
+ $ref: '#/definitions/model.PaymentType'
paymentTypeId:
description: 鏀舵鏂瑰紡ID
type: integer
+ principal:
+ allOf:
+ - $ref: '#/definitions/model.User'
+ description: 璐熻矗浜篿d
principalId:
description: 璐熻矗浜篿d
type: integer
@@ -1094,6 +1170,10 @@
$ref: '#/definitions/model.Client'
client_id:
type: integer
+ collection_projections:
+ items:
+ $ref: '#/definitions/model.CollectionProjection'
+ type: array
competitors:
type: string
contact:
@@ -1294,18 +1374,37 @@
type: object
model.SalesRefund:
properties:
- accountId:
+ amountTotal:
+ description: 浠风◣鍚堣
+ type: number
+ bankAccount:
+ $ref: '#/definitions/model.BankAccount'
+ bankAccountId:
+ description: 璐︽埛id
type: integer
+ client:
+ $ref: '#/definitions/model.Client'
clientId:
type: integer
+ createTime:
+ type: string
+ creatorName:
+ type: string
id:
type: integer
isInvoice:
type: integer
+ member:
+ $ref: '#/definitions/model.User'
memberId:
type: integer
number:
type: string
+ paymentType:
+ $ref: '#/definitions/model.PaymentType'
+ paymentTypeId:
+ description: 鏀舵鏂瑰紡ID
+ type: integer
products:
items:
$ref: '#/definitions/model.Product'
@@ -1314,8 +1413,13 @@
type: string
refundDate:
type: string
- refundMethod:
- type: string
+ sourceId:
+ description: 婧愬崟id
+ type: integer
+ sourceType:
+ allOf:
+ - $ref: '#/definitions/constvar.RefundSourceType'
+ description: 鏉ユ簮绫诲瀷锛�1閿�鍞槑缁嗗崟2鏈嶅姟鍚堝悓3閿�鍞彂绁�4鏀舵璁″垝5鍑哄簱鍗曪級
type: object
model.SalesReturn:
properties:
@@ -1547,8 +1651,6 @@
$ref: '#/definitions/model.Contact'
contactId:
type: integer
- customerServiceSheet:
- $ref: '#/definitions/model.CustomerServiceSheet'
file:
type: string
id:
@@ -1573,10 +1675,10 @@
$ref: '#/definitions/model.Satisfaction'
satisfactionId:
type: integer
- serviceId:
- type: integer
serviceOrder:
$ref: '#/definitions/model.ServiceOrder'
+ serviceOrderId:
+ type: integer
solveRate:
$ref: '#/definitions/model.SolveRate'
solveRateId:
@@ -1612,11 +1714,6 @@
contactId:
description: 鑱旂郴浜篿d
type: integer
- contract:
- $ref: '#/definitions/model.Contract'
- contractId:
- description: 鍚堝悓id
- type: integer
expectTime:
description: 甯屾湜澶勭悊鏃堕棿
type: string
@@ -1632,11 +1729,6 @@
type: integer
id:
type: integer
- orderId:
- description: 閿�鍞鍗昳d
- type: integer
- orderManage:
- $ref: '#/definitions/model.OrderManage'
priorityLevel:
$ref: '#/definitions/model.PriorityLevel'
priorityLevelId:
@@ -1660,6 +1752,16 @@
$ref: '#/definitions/model.SaleChance'
saleChanceId:
description: 閿�鍞満浼歩d
+ type: integer
+ salesDetails:
+ $ref: '#/definitions/model.SalesDetails'
+ salesDetailsId:
+ description: 閿�鍞槑缁唅d
+ type: integer
+ serviceContract:
+ $ref: '#/definitions/model.ServiceContract'
+ serviceContractId:
+ description: 鏈嶅姟鍚堝悓id
type: integer
serviceManId:
description: 鏈嶅姟浜哄憳
@@ -1955,6 +2057,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:
@@ -2264,6 +2378,10 @@
type: integer
number:
type: string
+ products:
+ items:
+ $ref: '#/definitions/model.Product'
+ type: array
quotation_status_id:
type: integer
sale_chance_id:
@@ -2283,6 +2401,8 @@
amount:
description: 鏀舵閲戦
type: number
+ bankAccount:
+ $ref: '#/definitions/model.BankAccount'
bankAccountId:
description: 璐︽埛id
type: integer
@@ -2297,9 +2417,15 @@
moneyType:
description: 甯佺
type: string
+ paymentType:
+ $ref: '#/definitions/model.PaymentType'
paymentTypeId:
description: 鏀舵鏂瑰紡ID
type: integer
+ principal:
+ allOf:
+ - $ref: '#/definitions/model.User'
+ description: 璐熻矗浜篿d
principalId:
description: 璐熻矗浜篿d
type: integer
@@ -2707,7 +2833,7 @@
type: string
satisfaction:
type: integer
- serviceId:
+ serviceOrderId:
type: integer
solveRate:
type: integer
@@ -2734,9 +2860,6 @@
contactId:
description: 鑱旂郴浜篿d
type: integer
- contractId:
- description: 鍚堝悓id
- type: integer
expectTime:
description: 甯屾湜澶勭悊鏃堕棿
type: string
@@ -2745,9 +2868,6 @@
type: integer
faultTypeId:
description: 鏁呴殰绫诲埆id
- type: integer
- orderId:
- description: 閿�鍞鍗昳d
type: integer
priorityLevelId:
description: 浼樺厛绾у埆id
@@ -2767,12 +2887,21 @@
saleChanceId:
description: 閿�鍞満浼歩d
type: integer
+ salesDetailsId:
+ description: 閿�鍞鍗昳d
+ type: integer
+ serviceContractId:
+ description: 鍚堝悓id
+ type: integer
serviceManId:
description: 鏈嶅姟浜哄憳
type: integer
serviceNumber:
description: 鏈嶅姟鍗曠紪鍙�
type: string
+ serviceOrderStatusId:
+ description: 澶勭悊鐘舵��
+ type: integer
serviceTypeId:
description: 鏈嶅姟鏂瑰紡id
type: integer
@@ -2785,9 +2914,6 @@
solutionRemark:
description: 鍐呴儴澶囨敞
type: string
- status:
- description: 澶勭悊鐘舵��
- type: integer
subject:
description: 涓婚
type: string
@@ -3137,14 +3263,17 @@
type: object
request.GetContractList:
properties:
- keyword:
- type: string
page:
description: 椤电爜
type: integer
pageSize:
description: 姣忛〉澶у皬
type: integer
+ search_map:
+ additionalProperties: true
+ description: '鎼滅储鏉′欢: map[string]interface{} {"member_name": "閿�鍞礋璐d汉", "number":
+ "鍚堝悓缂栧彿", "created_at": "鍒涘缓鏃堕棿"}'
+ type: object
type: object
request.GetFaqList:
properties:
@@ -3179,14 +3308,18 @@
type: object
request.GetMasterOrderList:
properties:
- keyword:
- type: string
page:
description: 椤电爜
type: integer
pageSize:
description: 姣忛〉澶у皬
type: integer
+ search_map:
+ additionalProperties: true
+ description: '鎼滅储鏉′欢: map[string]interface{}{"name": "xxx"}; {"number": "閿�鍞�诲崟鍙�",
+ "client_name": "瀹㈡埛鍚嶇О", "member_name": "閿�鍞礋璐d汉", "start_time": "寮�濮嬫椂闂�", "end_time":
+ "缁撴潫鏃堕棿", "money": "鎬婚噾棰�", "member_name": "璐熻矗浜�"}'
+ type: object
type: object
request.GetOrderManageList:
properties:
@@ -3212,25 +3345,34 @@
type: object
request.GetQuotationList:
properties:
- keyword:
- type: string
page:
description: 椤电爜
type: integer
pageSize:
description: 姣忛〉澶у皬
type: integer
+ searchMap:
+ additionalProperties: true
+ description: '鎼滅储鏉′欢: map[string]interface{}{"name": "xxx"}; {"sale_chance_id":
+ 閿�鍞嚎绱d, "client_name": "瀹㈡埛鍚嶇О", "member_name": "閿�鍞礋璐d汉", "contact_name": "鑱旂郴浜�",
+ "validity_date": "鏈夋晥鏈�"}'
+ type: object
type: object
request.GetSaleChanceList:
properties:
- keyword:
- type: string
page:
description: 椤电爜
type: integer
pageSize:
description: 姣忛〉澶у皬
type: integer
+ search_map:
+ additionalProperties: true
+ description: '鎼滅储鏉′欢: map[string]interface{}{"name": "xxx"}; {"name": "鏈轰細鍚嶇О",
+ "client_name": "瀹㈡埛鍚嶇О","number":"缂栧彿", "contact_name":"鑱旂郴浜哄鍚�", "member_name":
+ "閿�鍞礋璐d汉", "status": "鐘舵��", "sale_stage": "闃舵", "possibilities": "鍙兘鎬�", "expected_time":
+ "棰勮鎴愪氦鏃堕棿", "budget": "璧勯噾缁濆鍊�", "projected_amount": "棰勮鍚堝悓閲戦"}'
+ type: object
type: object
request.GetSalesDetailsList:
properties:
@@ -3264,6 +3406,8 @@
properties:
keyword:
type: string
+ keywordType:
+ $ref: '#/definitions/constvar.SalesRefundKeywordType'
page:
description: 椤电爜
type: integer
@@ -3324,6 +3468,9 @@
pageSize:
description: 姣忛〉澶у皬
type: integer
+ serviceOrderId:
+ description: 鏈嶅姟鍥炶鍗昳d
+ type: integer
type: object
request.GetServiceOrderList:
properties:
@@ -3339,17 +3486,25 @@
type: integer
queryClass:
$ref: '#/definitions/constvar.ServiceOrderQueryClass'
+ salesDetailsId:
+ type: integer
+ serviceContractId:
+ type: integer
type: object
request.GetSubOrderList:
properties:
- keyword:
- type: string
page:
description: 椤电爜
type: integer
pageSize:
description: 姣忛〉澶у皬
type: integer
+ search_map:
+ additionalProperties: true
+ description: '鎼滅储鏉′欢: map[string]interface{}{"name": "xxx"}; {"number": "閿�鍞瓙鍗曞彿",
+ "client_name": "瀹㈡埛鍚嶇О", "master_order_number": "閿�鍞�诲崟鍙�", "member_name": "閿�鍞礋璐d汉",
+ "master_order_id": "閿�鍞�诲崟id"}'
+ type: object
type: object
request.GetUserList:
properties:
@@ -3398,6 +3553,16 @@
type: string
subOrderId:
type: integer
+ type: object
+ request.PushSaleChance:
+ properties:
+ id:
+ type: integer
+ step:
+ type: integer
+ required:
+ - id
+ - step
type: object
request.PushSalesLeads:
properties:
@@ -3482,7 +3647,8 @@
type: object
request.SalesRefund:
properties:
- accountId:
+ bankAccountId:
+ description: 璐︽埛id
type: integer
clientId:
type: integer
@@ -3492,6 +3658,9 @@
type: integer
number:
type: string
+ paymentTypeId:
+ description: 鏀舵鏂瑰紡ID
+ type: integer
products:
items:
$ref: '#/definitions/model.Product'
@@ -3500,8 +3669,13 @@
type: string
refundDate:
type: string
- refundMethod:
- type: string
+ sourceId:
+ description: 婧愬崟id
+ type: integer
+ sourceType:
+ allOf:
+ - $ref: '#/definitions/constvar.RefundSourceType'
+ description: 鏉ユ簮绫诲瀷锛�1閿�鍞槑缁嗗崟2鏈嶅姟鍚堝悓3閿�鍞彂绁�4鏀舵璁″垝5鍑哄簱鍗曪級
type: object
request.SalesReturn:
properties:
@@ -3768,6 +3942,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:
@@ -4214,6 +4399,10 @@
type: integer
number:
type: string
+ products:
+ items:
+ $ref: '#/definitions/model.Product'
+ type: array
quotation_status_id:
type: integer
sale_chance_id:
@@ -4245,6 +4434,8 @@
amount:
description: 鏀舵閲戦
type: number
+ bankAccount:
+ $ref: '#/definitions/model.BankAccount'
bankAccountId:
description: 璐︽埛id
type: integer
@@ -4259,9 +4450,15 @@
moneyType:
description: 甯佺
type: string
+ paymentType:
+ $ref: '#/definitions/model.PaymentType'
paymentTypeId:
description: 鏀舵鏂瑰紡ID
type: integer
+ principal:
+ allOf:
+ - $ref: '#/definitions/model.User'
+ description: 璐熻矗浜篿d
principalId:
description: 璐熻矗浜篿d
type: integer
@@ -4845,7 +5042,7 @@
type: string
satisfaction:
type: integer
- serviceId:
+ serviceOrderId:
type: integer
solveRate:
type: integer
@@ -4872,9 +5069,6 @@
contactId:
description: 鑱旂郴浜篿d
type: integer
- contractId:
- description: 鍚堝悓id
- type: integer
expectTime:
description: 甯屾湜澶勭悊鏃堕棿
type: string
@@ -4885,9 +5079,6 @@
description: 鏁呴殰绫诲埆id
type: integer
id:
- type: integer
- orderId:
- description: 閿�鍞鍗昳d
type: integer
priorityLevelId:
description: 浼樺厛绾у埆id
@@ -4907,12 +5098,21 @@
saleChanceId:
description: 閿�鍞満浼歩d
type: integer
+ salesDetailsId:
+ description: 閿�鍞鍗昳d
+ type: integer
+ serviceContractId:
+ description: 鍚堝悓id
+ type: integer
serviceManId:
description: 鏈嶅姟浜哄憳
type: integer
serviceNumber:
description: 鏈嶅姟鍗曠紪鍙�
type: string
+ serviceOrderStatusId:
+ description: 澶勭悊鐘舵��
+ type: integer
serviceTypeId:
description: 鏈嶅姟鏂瑰紡id
type: integer
@@ -4925,9 +5125,6 @@
solutionRemark:
description: 鍐呴儴澶囨敞
type: string
- status:
- description: 澶勭悊鐘舵��
- type: integer
subject:
description: 涓婚
type: string
@@ -6403,6 +6600,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:
@@ -9495,6 +9769,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:
--
Gitblit v1.8.0