From f7da9306eb62a7ccda30a002f2d4242c4e52cfa3 Mon Sep 17 00:00:00 2001
From: wangpengfei <274878379@qq.com>
Date: 星期四, 20 七月 2023 10:19:57 +0800
Subject: [PATCH] fix
---
docs/swagger.yaml | 782 ++++++++++++++++++++++++++++++++++++++++++++++++++++---
1 files changed, 735 insertions(+), 47 deletions(-)
diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index 3f09b42..170d8a0 100644
--- a/docs/swagger.yaml
+++ b/docs/swagger.yaml
@@ -60,6 +60,22 @@
msg:
type: string
type: object
+ model.Authority:
+ properties:
+ authorityName:
+ description: 瑙掕壊鍚�
+ type: string
+ defaultRouter:
+ description: 榛樿鑿滃崟(榛樿dashboard)
+ type: string
+ id:
+ description: 瑙掕壊ID
+ type: integer
+ menus:
+ items:
+ $ref: '#/definitions/model.Menu'
+ type: array
+ type: object
model.City:
properties:
id:
@@ -79,12 +95,20 @@
$ref: '#/definitions/model.City'
city_id:
type: integer
+ client_level:
+ $ref: '#/definitions/model.ClientLevel'
client_level_id:
type: integer
+ client_origin:
+ $ref: '#/definitions/model.ClientOrigin'
client_origin_id:
type: integer
+ client_status:
+ $ref: '#/definitions/model.ClientStatus'
client_status_id:
type: integer
+ client_type:
+ $ref: '#/definitions/model.ClientType'
client_type_id:
type: integer
contacts:
@@ -296,6 +320,30 @@
$ref: '#/definitions/model.Province'
type: array
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:
+ id:
+ type: integer
+ name:
+ type: string
+ type: object
model.EnterpriseNature:
properties:
id:
@@ -312,10 +360,14 @@
type: object
model.FollowRecord:
properties:
+ client:
+ $ref: '#/definitions/model.Client'
client_id:
type: integer
client_status_id:
type: integer
+ contact:
+ $ref: '#/definitions/model.Contact'
contact_id:
type: integer
contact_information_id:
@@ -365,6 +417,24 @@
number:
type: string
start_time:
+ type: string
+ type: object
+ model.Menu:
+ properties:
+ children:
+ items:
+ $ref: '#/definitions/model.Menu'
+ type: array
+ id:
+ description: 涓婚敭ID
+ type: integer
+ name:
+ type: string
+ parentId:
+ type: integer
+ path:
+ type: string
+ title:
type: string
type: object
model.Plan:
@@ -507,6 +577,8 @@
type: integer
currency:
$ref: '#/definitions/constvar.CurrencyType'
+ detail_address:
+ type: string
disadvantages:
type: string
expected_time:
@@ -543,6 +615,8 @@
type: integer
regular_customers_id:
type: integer
+ remark:
+ type: string
sale_stage_id:
type: integer
sale_type_id:
@@ -677,6 +751,29 @@
refundMethod:
type: string
type: object
+ model.SalesReturn:
+ properties:
+ clientId:
+ type: integer
+ id:
+ type: integer
+ memberId:
+ type: integer
+ number:
+ type: string
+ products:
+ items:
+ $ref: '#/definitions/model.Product'
+ type: array
+ reason:
+ type: string
+ repository:
+ type: string
+ returnDate:
+ type: string
+ status:
+ type: integer
+ type: object
model.SalesSources:
properties:
id:
@@ -723,12 +820,31 @@
typeId:
type: integer
type: object
+ model.ServiceFeeManage:
+ properties:
+ client:
+ $ref: '#/definitions/model.Client'
+ client_id:
+ type: integer
+ file:
+ type: string
+ id:
+ type: integer
+ latest_date:
+ type: string
+ member_id:
+ type: integer
+ remark:
+ type: string
+ type: object
model.ServiceFollowup:
properties:
clientId:
type: integer
contactId:
type: integer
+ customerServiceSheet:
+ $ref: '#/definitions/model.CustomerServiceSheet'
file:
type: string
id:
@@ -773,21 +889,19 @@
type: object
model.User:
properties:
- companyName:
- type: string
- createAt:
- description: 鍒涘缓鏃堕棿
- type: string
+ authority:
+ $ref: '#/definitions/model.Authority'
+ authorityId:
+ description: 鐢ㄦ埛瑙掕壊ID
+ type: integer
+ departmentId:
+ type: integer
email:
type: string
- enable:
- type: boolean
headerImg:
type: string
id:
- type: string
- ip:
- type: string
+ type: integer
menuIds:
description: 鑿滃崟ID鍒楄〃
items:
@@ -795,25 +909,27 @@
type: array
nickName:
type: string
- parentId:
- type: string
- parentName:
- type: string
phone:
- type: string
- port:
type: string
pos:
type: string
- status:
- type: integer
- updateAt:
- description: 鏇存柊鏃堕棿
+ realName:
type: string
userType:
$ref: '#/definitions/constvar.UserType'
username:
type: string
+ uuid:
+ type: string
+ type: object
+ request.AddAuthority:
+ properties:
+ authorityName:
+ type: string
+ casbinInfos:
+ items:
+ $ref: '#/definitions/request.CasbinInfo'
+ type: array
type: object
request.AddCity:
properties:
@@ -997,6 +1113,13 @@
serviceMode:
type: integer
type: object
+ request.AddDepartment:
+ properties:
+ name:
+ type: string
+ required:
+ - name
+ type: object
request.AddEnterpriseNature:
properties:
name:
@@ -1140,6 +1263,8 @@
type: integer
currency:
type: integer
+ detail_address:
+ type: string
disadvantages:
type: string
expected_time:
@@ -1170,6 +1295,8 @@
type: integer
regular_customers_id:
type: integer
+ remark:
+ type: string
sale_stage_id:
type: integer
sale_type_id:
@@ -1293,6 +1420,19 @@
typeId:
type: integer
type: object
+ request.AddServiceFeeManage:
+ properties:
+ client_id:
+ type: integer
+ file:
+ type: string
+ latest_date:
+ type: string
+ member_id:
+ type: integer
+ remark:
+ type: string
+ type: object
request.AddServiceFollowup:
properties:
clientId:
@@ -1331,8 +1471,46 @@
type: object
request.AddSubOrder:
properties:
- subOrder:
- $ref: '#/definitions/request.SubOrder'
+ clientId:
+ type: integer
+ masterOrderId:
+ type: integer
+ memberId:
+ type: integer
+ number:
+ type: string
+ product:
+ items:
+ $ref: '#/definitions/model.Product'
+ type: array
+ type: object
+ request.AddVetting:
+ properties:
+ opinion:
+ type: string
+ status:
+ type: integer
+ userId:
+ type: integer
+ vettingId:
+ type: integer
+ vettingType:
+ type: integer
+ required:
+ - opinion
+ - status
+ - userId
+ - vettingId
+ - vettingType
+ type: object
+ request.CasbinInfo:
+ properties:
+ method:
+ description: 鏂规硶
+ type: string
+ path:
+ description: 璺緞
+ type: string
type: object
request.ChangePasswordReq:
properties:
@@ -1363,6 +1541,76 @@
pos:
description: 鐢ㄦ埛宀椾綅
type: string
+ type: object
+ request.Client:
+ properties:
+ business_scope:
+ description: 缁忚惀鑼冨洿
+ type: string
+ city_id:
+ type: integer
+ client_level_id:
+ description: 瀹㈡埛绛夌骇ID
+ type: integer
+ client_origin_id:
+ description: 瀹㈡埛鏉ユ簮ID
+ type: integer
+ client_status_id:
+ description: 瀹㈡埛鐘舵�両D
+ type: integer
+ client_type_id:
+ description: 瀹㈡埛绫诲瀷ID
+ type: integer
+ contact:
+ $ref: '#/definitions/request.Contact'
+ country_id:
+ type: integer
+ detail_address:
+ description: 璇︾粏鍦板潃
+ type: string
+ enterprise_nature_id:
+ description: 浼佷笟鎬ц川
+ type: integer
+ enterprise_scale_id:
+ description: 浼佷笟瑙勬ā
+ type: integer
+ industry_id:
+ description: 鎵�灞炶涓�
+ type: integer
+ latest_service_time:
+ description: 鏈�鏅氭湇鍔℃椂闂�
+ type: string
+ member_id:
+ description: 閿�鍞礋璐d汉ID
+ type: integer
+ name:
+ description: 鍏徃鍚嶇О
+ type: string
+ next_visit_time:
+ description: 涓嬫鍥炶鏃堕棿
+ type: string
+ number:
+ description: 鍏徃缂栧彿
+ type: string
+ province_id:
+ type: integer
+ region_id:
+ type: integer
+ registered_capital_id:
+ description: 娉ㄥ唽璧勯噾
+ type: integer
+ registration_time:
+ description: 娉ㄥ唽鏃堕棿
+ type: string
+ remark:
+ description: 澶囨敞
+ type: string
+ representative:
+ description: 娉曚汉浠h〃
+ type: string
+ service_member_id:
+ description: 鏈嶅姟璐熻矗浜篒D
+ type: integer
type: object
request.Contact:
properties:
@@ -1506,23 +1754,33 @@
type: object
request.Register:
properties:
+ authorityId:
+ description: 鐢ㄦ埛瑙掕壊ID
+ type: integer
+ departmentId:
+ type: integer
email:
- example: 鐢靛瓙閭
type: string
headerImg:
- example: 澶村儚閾炬帴
+ type: string
+ id:
type: string
nickName:
- example: 鏄电О
type: string
- passWord:
- example: 瀵嗙爜
+ password:
type: string
phone:
- example: 鐢佃瘽鍙风爜
type: string
- userName:
- example: 鐢ㄦ埛鍚�
+ pos:
+ type: string
+ rePassword:
+ description: 纭瀵嗙爜
+ type: string
+ realName:
+ type: string
+ userType:
+ $ref: '#/definitions/constvar.UserType'
+ username:
type: string
type: object
request.SalesDetails:
@@ -1602,6 +1860,15 @@
status:
type: integer
type: object
+ request.SetAuthorityMenu:
+ properties:
+ authorityId:
+ type: integer
+ menus:
+ items:
+ type: integer
+ type: array
+ type: object
request.SetCity:
properties:
city_ids:
@@ -1633,21 +1900,6 @@
description: 鍦板尯ID鍒楄〃
items:
type: integer
- type: array
- type: object
- request.SubOrder:
- properties:
- clientId:
- type: integer
- masterOrderId:
- type: integer
- memberId:
- type: integer
- number:
- type: string
- product:
- items:
- $ref: '#/definitions/model.Product'
type: array
type: object
request.UpdateCities:
@@ -1905,6 +2157,25 @@
serviceMode:
type: integer
type: object
+ request.UpdateDepartment:
+ properties:
+ id:
+ type: integer
+ name:
+ type: string
+ required:
+ - id
+ - name
+ type: object
+ request.UpdateDepartmentList:
+ properties:
+ departments:
+ items:
+ $ref: '#/definitions/request.UpdateDepartment'
+ type: array
+ required:
+ - departments
+ type: object
request.UpdateEnterpriseNature:
properties:
id:
@@ -2146,6 +2417,8 @@
type: integer
currency:
type: integer
+ detail_address:
+ type: string
disadvantages:
type: string
expected_time:
@@ -2178,6 +2451,8 @@
type: integer
regular_customers_id:
type: integer
+ remark:
+ type: string
sale_stage_id:
type: integer
sale_type_id:
@@ -2363,6 +2638,23 @@
typeId:
type: integer
type: object
+ request.UpdateServiceFeeManage:
+ properties:
+ client:
+ $ref: '#/definitions/request.Client'
+ client_id:
+ type: integer
+ file:
+ type: string
+ id:
+ type: integer
+ latest_date:
+ type: string
+ member_id:
+ type: integer
+ remark:
+ type: string
+ type: object
request.UpdateServiceFollowup:
properties:
clientId:
@@ -2493,6 +2785,106 @@
$ref: '#/definitions/model.Country'
type: array
type: object
+ response.DataResponse:
+ properties:
+ city:
+ description: 鍩庡競鏁版嵁
+ items:
+ $ref: '#/definitions/model.City'
+ type: array
+ client_level:
+ description: 瀹㈡埛绛夌骇
+ items:
+ $ref: '#/definitions/model.ClientLevel'
+ type: array
+ client_origin:
+ description: 瀹㈡埛鏉ユ簮
+ items:
+ $ref: '#/definitions/model.ClientOrigin'
+ type: array
+ client_status:
+ description: 瀹㈡埛鐘舵��
+ items:
+ $ref: '#/definitions/model.ClientStatus'
+ type: array
+ client_type:
+ description: 瀹㈡埛绫诲瀷
+ items:
+ $ref: '#/definitions/model.ClientType'
+ type: array
+ country:
+ description: 鍥藉鏁版嵁
+ items:
+ $ref: '#/definitions/model.Country'
+ type: array
+ department:
+ description: 閮ㄩ棬
+ items:
+ $ref: '#/definitions/model.Department'
+ type: array
+ enterprise_nature:
+ description: 浼佷笟鎬ц川
+ items:
+ $ref: '#/definitions/model.EnterpriseNature'
+ type: array
+ enterprise_scale:
+ description: 浼佷笟瑙勬ā
+ items:
+ $ref: '#/definitions/model.EnterpriseScale'
+ type: array
+ industry:
+ description: 琛屼笟
+ items:
+ $ref: '#/definitions/model.Industry'
+ type: array
+ member:
+ description: Member
+ items:
+ $ref: '#/definitions/model.User'
+ type: array
+ province:
+ description: 鐪佷唤鏁版嵁
+ items:
+ $ref: '#/definitions/model.Province'
+ type: array
+ region:
+ description: 鍖哄煙鏁版嵁
+ items:
+ $ref: '#/definitions/model.Region'
+ type: array
+ registered_capital:
+ description: 娉ㄥ唽璧勯噾
+ items:
+ $ref: '#/definitions/model.RegisteredCapital'
+ type: array
+ regular_customers:
+ description: 鑰佸鎴疯惀閿�
+ items:
+ $ref: '#/definitions/model.RegularCustomers'
+ type: array
+ sale_stage:
+ description: 閿�鍞樁娈�
+ items:
+ $ref: '#/definitions/model.SaleStage'
+ type: array
+ sale_type:
+ description: 閿�鍞被鍨�
+ items:
+ $ref: '#/definitions/model.SaleType'
+ type: array
+ sales_source:
+ description: 鍟嗘満鏉ユ簮
+ items:
+ $ref: '#/definitions/model.SalesSources'
+ type: array
+ type: object
+ response.DepartmentResponse:
+ properties:
+ list:
+ items:
+ $ref: '#/definitions/model.Department'
+ type: array
+ type: object
response.EnterpriseNatureResponse:
properties:
list:
@@ -2535,6 +2927,13 @@
list:
items:
$ref: '#/definitions/model.MasterOrder'
+ type: array
+ type: object
+ response.MenuTreeResponse:
+ properties:
+ list:
+ items:
+ $ref: '#/definitions/model.Menu'
type: array
type: object
response.PageResult:
@@ -2631,6 +3030,13 @@
$ref: '#/definitions/model.SalesRefund'
type: array
type: object
+ response.SalesReturnResponse:
+ properties:
+ list:
+ items:
+ $ref: '#/definitions/model.SalesReturn'
+ type: array
+ type: object
response.SalesSourceResponse:
properties:
list:
@@ -2643,6 +3049,13 @@
list:
items:
$ref: '#/definitions/model.ServiceContract'
+ type: array
+ type: object
+ response.ServiceFeeManageResponse:
+ properties:
+ list:
+ items:
+ $ref: '#/definitions/model.ServiceFeeManage'
type: array
type: object
response.ServiceFollowupResponse:
@@ -2667,6 +3080,52 @@
info:
contact: {}
paths:
+ /api/authority/add:
+ post:
+ consumes:
+ - application/json
+ parameters:
+ - description: 鏌ヨ鍙傛暟
+ in: body
+ name: data
+ required: true
+ schema:
+ $ref: '#/definitions/request.AddAuthority'
+ produces:
+ - application/json
+ responses:
+ "200":
+ description: OK
+ schema:
+ $ref: '#/definitions/contextx.Response'
+ security:
+ - ApiKeyAuth: []
+ summary: 鍒涘缓瑙掕壊
+ tags:
+ - Authority
+ /api/authority/setMenuAuthority:
+ post:
+ consumes:
+ - application/json
+ parameters:
+ - description: 璁剧疆瑙掕壊璧勬簮鏉冮檺
+ in: body
+ name: data
+ required: true
+ schema:
+ $ref: '#/definitions/request.SetAuthorityMenu'
+ produces:
+ - application/json
+ responses:
+ "200":
+ description: OK
+ schema:
+ $ref: '#/definitions/contextx.Response'
+ security:
+ - ApiKeyAuth: []
+ summary: 璁剧疆瑙掕壊鑿滃崟
+ tags:
+ - Authority
/api/base/captcha:
post:
produces:
@@ -2747,6 +3206,11 @@
- City
/api/city/list:
get:
+ parameters:
+ - description: 鐪佷唤ID
+ in: query
+ name: province_id
+ type: integer
produces:
- application/json
responses:
@@ -2855,7 +3319,7 @@
tags:
- Client
/api/client/update:
- post:
+ put:
parameters:
- description: 鏌ヨ鍙傛暟
in: body
@@ -3453,6 +3917,96 @@
summary: 鏇存柊瀹㈡湇鍗�
tags:
- CustomerServiceSheet
+ /api/data/getAllData:
+ get:
+ produces:
+ - application/json
+ responses:
+ "200":
+ description: OK
+ schema:
+ allOf:
+ - $ref: '#/definitions/contextx.Response'
+ - properties:
+ data:
+ $ref: '#/definitions/response.DataResponse'
+ type: object
+ summary: 鑾峰彇鎵�鏈夋暟鎹�
+ tags:
+ - Data
+ /api/department/add:
+ post:
+ parameters:
+ - description: 鏌ヨ鍙傛暟
+ in: body
+ name: object
+ required: true
+ schema:
+ $ref: '#/definitions/request.AddDepartment'
+ produces:
+ - application/json
+ responses:
+ "200":
+ description: OK
+ schema:
+ $ref: '#/definitions/contextx.Response'
+ summary: 娣诲姞閮ㄩ棬
+ tags:
+ - Department
+ /api/department/delete/{id}:
+ delete:
+ parameters:
+ - description: 閮ㄩ棬ID
+ in: path
+ name: id
+ required: true
+ type: integer
+ produces:
+ - application/json
+ responses:
+ "200":
+ description: OK
+ schema:
+ $ref: '#/definitions/contextx.Response'
+ summary: 鍒犻櫎閮ㄩ棬
+ tags:
+ - Department
+ /api/department/list:
+ get:
+ produces:
+ - application/json
+ responses:
+ "200":
+ description: OK
+ schema:
+ allOf:
+ - $ref: '#/definitions/contextx.Response'
+ - properties:
+ data:
+ $ref: '#/definitions/response.DepartmentResponse'
+ type: object
+ summary: 閮ㄩ棬鍒楄〃
+ tags:
+ - Department
+ /api/department/update/{id}:
+ put:
+ parameters:
+ - description: 鏌ヨ鍙傛暟
+ in: body
+ name: object
+ required: true
+ schema:
+ $ref: '#/definitions/request.UpdateDepartmentList'
+ produces:
+ - application/json
+ responses:
+ "200":
+ description: OK
+ schema:
+ $ref: '#/definitions/contextx.Response'
+ summary: 鏇存柊閮ㄩ棬
+ tags:
+ - Department
/api/enterpriseNature/add:
post:
parameters:
@@ -3835,6 +4389,31 @@
summary: 鏇存柊涓昏鍗�
tags:
- MasterOrder
+ /api/menu/getMenu:
+ get:
+ parameters:
+ - description: Authorization
+ in: header
+ name: Authorization
+ required: true
+ type: string
+ produces:
+ - application/json
+ responses:
+ "200":
+ description: OK
+ schema:
+ allOf:
+ - $ref: '#/definitions/contextx.Response'
+ - properties:
+ data:
+ $ref: '#/definitions/response.MenuTreeResponse'
+ type: object
+ security:
+ - ApiKeyAuth: []
+ summary: 鑾峰彇鑿滃崟鏍�
+ tags:
+ - Menu
/api/orderManage/add:
post:
parameters:
@@ -4088,6 +4667,12 @@
- Province
/api/province/list:
get:
+ parameters:
+ - description: 鍥藉ID
+ in: query
+ name: country_id
+ required: true
+ type: integer
produces:
- application/json
responses:
@@ -4253,6 +4838,12 @@
- Region
/api/region/list:
get:
+ parameters:
+ - description: 鍩庡競ID
+ in: query
+ name: city_id
+ required: true
+ type: integer
produces:
- application/json
responses:
@@ -4930,7 +5521,12 @@
"200":
description: OK
schema:
- $ref: '#/definitions/contextx.Response'
+ allOf:
+ - $ref: '#/definitions/contextx.Response'
+ - properties:
+ data:
+ $ref: '#/definitions/response.SalesReturnResponse'
+ type: object
summary: 鑾峰彇閿�鍞��璐у垪琛�
tags:
- SalesReturn
@@ -5099,6 +5695,79 @@
summary: 鏇存柊鏈嶅姟鍚堝悓
tags:
- ServiceContract
+ /api/serviceFeeManage/add:
+ post:
+ parameters:
+ - description: 鏌ヨ鍙傛暟
+ in: body
+ name: object
+ required: true
+ schema:
+ $ref: '#/definitions/request.AddServiceFeeManage'
+ produces:
+ - application/json
+ responses:
+ "200":
+ description: OK
+ schema:
+ $ref: '#/definitions/contextx.Response'
+ summary: 娣诲姞鏈嶅姟璐圭鐞�
+ tags:
+ - ServiceFeeManage
+ /api/serviceFeeManage/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:
+ - ServiceFeeManage
+ /api/serviceFeeManage/list:
+ get:
+ produces:
+ - application/json
+ responses:
+ "200":
+ description: OK
+ schema:
+ allOf:
+ - $ref: '#/definitions/contextx.Response'
+ - properties:
+ data:
+ $ref: '#/definitions/response.ServiceFeeManageResponse'
+ type: object
+ summary: 鏈嶅姟璐圭鐞嗗垪琛�
+ tags:
+ - ServiceFeeManage
+ /api/serviceFeeManage/update:
+ put:
+ parameters:
+ - description: 鏌ヨ鍙傛暟
+ in: body
+ name: object
+ required: true
+ schema:
+ $ref: '#/definitions/request.UpdateServiceFeeManage'
+ produces:
+ - application/json
+ responses:
+ "200":
+ description: OK
+ schema:
+ $ref: '#/definitions/contextx.Response'
+ summary: 鏇存柊鏈嶅姟璐圭鐞�
+ tags:
+ - ServiceFeeManage
/api/serviceFollowup/add:
post:
parameters:
@@ -5468,4 +6137,23 @@
summary: 璁剧疆鐢ㄦ埛淇℃伅
tags:
- User
+ /api/vetting/add:
+ post:
+ parameters:
+ - description: 鏌ヨ鍙傛暟
+ in: body
+ name: object
+ required: true
+ schema:
+ $ref: '#/definitions/request.AddVetting'
+ produces:
+ - application/json
+ responses:
+ "200":
+ description: OK
+ schema:
+ $ref: '#/definitions/contextx.Response'
+ summary: 娣诲姞瀹℃壒
+ tags:
+ - Vetting
swagger: "2.0"
--
Gitblit v1.8.0