From fdde31710cf0b94560583e1039088c90a21de5d6 Mon Sep 17 00:00:00 2001
From: wangpengfei <274878379@qq.com>
Date: 星期二, 18 七月 2023 15:12:56 +0800
Subject: [PATCH] add
---
docs/swagger.yaml | 275 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 274 insertions(+), 1 deletions(-)
diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index 1a9724c..9ebebbd 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:
@@ -329,10 +353,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:
@@ -382,6 +410,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:
@@ -809,6 +855,11 @@
type: object
model.User:
properties:
+ authority:
+ $ref: '#/definitions/model.Authority'
+ authorityId:
+ description: 鐢ㄦ埛瑙掕壊ID
+ type: integer
companyName:
type: string
createAt:
@@ -850,6 +901,15 @@
$ref: '#/definitions/constvar.UserType'
username:
type: string
+ type: object
+ request.AddAuthority:
+ properties:
+ authorityName:
+ type: string
+ casbinInfos:
+ items:
+ $ref: '#/definitions/request.CasbinInfo'
+ type: array
type: object
request.AddCity:
properties:
@@ -1383,6 +1443,15 @@
subOrder:
$ref: '#/definitions/request.SubOrder'
type: object
+ request.CasbinInfo:
+ properties:
+ method:
+ description: 鏂规硶
+ type: string
+ path:
+ description: 璺緞
+ type: string
+ type: object
request.ChangePasswordReq:
properties:
newPassword:
@@ -1720,6 +1789,15 @@
type: string
status:
type: integer
+ type: object
+ request.SetAuthorityMenu:
+ properties:
+ authorityId:
+ type: integer
+ menus:
+ items:
+ type: integer
+ type: array
type: object
request.SetCity:
properties:
@@ -2629,6 +2707,89 @@
$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
+ 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
+ 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.EnterpriseNatureResponse:
properties:
list:
@@ -2671,6 +2832,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:
@@ -2810,6 +2978,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:
@@ -2890,6 +3104,11 @@
- City
/api/city/list:
get:
+ parameters:
+ - description: 鐪佷唤ID
+ in: query
+ name: province_id
+ type: integer
produces:
- application/json
responses:
@@ -2998,7 +3217,7 @@
tags:
- Client
/api/client/update:
- post:
+ put:
parameters:
- description: 鏌ヨ鍙傛暟
in: body
@@ -3596,6 +3815,23 @@
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/enterpriseNature/add:
post:
parameters:
@@ -3978,6 +4214,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:
@@ -4231,6 +4492,12 @@
- Province
/api/province/list:
get:
+ parameters:
+ - description: 鍥藉ID
+ in: query
+ name: country_id
+ required: true
+ type: integer
produces:
- application/json
responses:
@@ -4396,6 +4663,12 @@
- Region
/api/region/list:
get:
+ parameters:
+ - description: 鍩庡競ID
+ in: query
+ name: city_id
+ required: true
+ type: integer
produces:
- application/json
responses:
--
Gitblit v1.8.0