Merge branch 'dev' of http://gitlab.fjmaimaimai.com/mmm-go-pp/partner01 into feature/order
正在显示
37 个修改的文件
包含
394 行增加
和
1 行删除
document/partner01/api/http/company.yaml
0 → 100644
1 | +version: v1 | ||
2 | +kind: HttpApi | ||
3 | +metadata: | ||
4 | + service: company | ||
5 | + path: /companys | ||
6 | + endpoints: | ||
7 | + - method: createCompany | ||
8 | + route: | ||
9 | + post: / | ||
10 | + - method: updateCompany | ||
11 | + route: | ||
12 | + put: /{companyId} | ||
13 | + - method: getCompany | ||
14 | + route: | ||
15 | + get: /{companyId} | ||
16 | + - method: removeCompany | ||
17 | + route: | ||
18 | + delete: /{companyId} | ||
19 | + - method: listCompany | ||
20 | + route: | ||
21 | + get: / | ||
22 | + params: | ||
23 | + - name: offset | ||
24 | + - name: limit |
document/partner01/api/http/partner.yaml
0 → 100644
document/partner01/api/http/permission.yaml
0 → 100644
document/partner01/schemas/company.yaml
0 → 100644
1 | +version: v1 | ||
2 | +kind: Schema | ||
3 | +metadata: | ||
4 | + name: company | ||
5 | + description: 公司信息 | ||
6 | + attributes: | ||
7 | + - ref: companyId | ||
8 | + required: true | ||
9 | + - ref: companyInfo | ||
10 | + required: true | ||
11 | + - ref: createAt | ||
12 | + required: true | ||
13 | + - ref: updateAt | ||
14 | + required: true | ||
15 | + - ref: deleteAt | ||
16 | + required: true |
document/partner01/schemas/companyInfo.yaml
0 → 100644
1 | +version: v1 | ||
2 | +kind: Schema | ||
3 | +metadata: | ||
4 | + name: companyInfo | ||
5 | + description: 公司信息 | ||
6 | + attributes: | ||
7 | + - ref: companyId | ||
8 | + required: true | ||
9 | + - ref: name | ||
10 | + required: true | ||
11 | + - ref: abbreviation | ||
12 | + required: true | ||
13 | + - ref: logo | ||
14 | + required: true | ||
15 | + - ref: phone | ||
16 | + required: true | ||
17 | + - ref: status | ||
18 | + required: true | ||
19 | + - ref: remarks | ||
20 | + required: true | ||
21 | + - ref: enable | ||
22 | + required: true | ||
23 | + - name: admin | ||
24 | + description: 公司主管理员 | ||
25 | + type: | ||
26 | + schema: userInfo |
@@ -10,3 +10,16 @@ metadata: | @@ -10,3 +10,16 @@ metadata: | ||
10 | required: true | 10 | required: true |
11 | - ref: regionInfo | 11 | - ref: regionInfo |
12 | required: true | 12 | required: true |
13 | + - ref: status | ||
14 | + required: true | ||
15 | + - ref: cooperateTime | ||
16 | + required: true | ||
17 | + - name: salesmans | ||
18 | + description: 业务员 | ||
19 | + type: | ||
20 | + array: salesman | ||
21 | + - name: partnerCategorys | ||
22 | + description: 合伙人类型 | ||
23 | + type: | ||
24 | + array: partnerCategory | ||
25 | + |
document/partner01/schemas/permission.yaml
0 → 100644
1 | +version: v1 | ||
2 | +kind: Schema | ||
3 | +metadata: | ||
4 | + name: permission | ||
5 | + description: 权限 | ||
6 | + attributes: | ||
7 | + - ref: permissionId | ||
8 | + required: true | ||
9 | + - ref: name | ||
10 | + required: true | ||
11 | + - ref: code | ||
12 | + required: true | ||
13 | + - ref: parentId | ||
14 | + required: true | ||
15 | + - ref: sort | ||
16 | + required: true | ||
17 | + - ref: icon | ||
18 | + required: true |
@@ -6,6 +6,8 @@ metadata: | @@ -6,6 +6,8 @@ metadata: | ||
6 | attributes: | 6 | attributes: |
7 | - ref: userId | 7 | - ref: userId |
8 | required: true | 8 | required: true |
9 | + - ref: userType | ||
10 | + required: true | ||
9 | - ref: permissions | 11 | - ref: permissions |
10 | required: true | 12 | required: true |
11 | - ref: companyId | 13 | - ref: companyId |
@@ -15,4 +17,12 @@ metadata: | @@ -15,4 +17,12 @@ metadata: | ||
15 | - ref: status | 17 | - ref: status |
16 | required: true | 18 | required: true |
17 | - ref: isSenior | 19 | - ref: isSenior |
18 | - required: true | ||
20 | + required: true | ||
21 | + - ref: accessPartners | ||
22 | + required: true | ||
23 | + - ref: createAt | ||
24 | + required: true | ||
25 | + - ref: updateAt | ||
26 | + required: true | ||
27 | + - ref: deleteAt | ||
28 | + required: true |
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: createCompany | ||
5 | + type: command | ||
6 | + description: 创建 | ||
7 | + payload: | ||
8 | + - ref: name | ||
9 | + required: true | ||
10 | + - ref: abbreviation | ||
11 | + required: true | ||
12 | + - ref: status | ||
13 | + required: true | ||
14 | + - ref: remarks | ||
15 | + required: false | ||
16 | + - name: adminId | ||
17 | + description: 公司主管理员Id | ||
18 | + type: | ||
19 | + primitive: int64 | ||
20 | + result: | ||
21 | + - ref: count | ||
22 | + required: true | ||
23 | + - name: company | ||
24 | + type: | ||
25 | + schema: company |
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: updateCompany | ||
5 | + type: command | ||
6 | + description: 更新 | ||
7 | + payload: | ||
8 | + - ref: companyId | ||
9 | + required: true | ||
10 | + - ref: name | ||
11 | + required: false | ||
12 | + - ref: abbreviation | ||
13 | + required: false | ||
14 | + - ref: status | ||
15 | + required: false | ||
16 | + - ref: remarks | ||
17 | + required: false | ||
18 | + - name: adminId | ||
19 | + description: 公司主管理员Id | ||
20 | + type: | ||
21 | + primitive: int64 | ||
22 | + required: false | ||
23 | + result: | ||
24 | + - name: company | ||
25 | + type: | ||
26 | + schema: company |
-
请 注册 或 登录 后发表评论