正在显示
19 个修改的文件
包含
236 行增加
和
0 行删除
1 | +version: v1 | ||
2 | +kind: HttpApi | ||
3 | +metadata: | ||
4 | + service: blockChain | ||
5 | + path: /block-chains | ||
6 | + endpoints: | ||
7 | + - method: createBlockChain | ||
8 | + route: | ||
9 | + post: / | ||
10 | + - method: updateBlockChain | ||
11 | + route: | ||
12 | + put: /{blockChainId} | ||
13 | + - method: getBlockChain | ||
14 | + route: | ||
15 | + get: /{blockChainId} | ||
16 | + - method: removeBlockChain | ||
17 | + route: | ||
18 | + delete: /{blockChainId} | ||
19 | + - method: listBlockChain | ||
20 | + route: | ||
21 | + get: / | ||
22 | + params: | ||
23 | + - name: offset | ||
24 | + - name: limit |
allied-creation-user/schemas/upChain.yaml
0 → 100644
1 | +version: v1 | ||
2 | +kind: Schema | ||
3 | +metadata: | ||
4 | + name: upChain | ||
5 | + description: 上链数据 | ||
6 | + attributes: | ||
7 | + - ref: upChainId | ||
8 | + required: true | ||
9 | + - ref: source | ||
10 | + required: true | ||
11 | + - ref: primaryId | ||
12 | + required: true | ||
13 | + - ref: issueId | ||
14 | + required: true | ||
15 | + - ref: data | ||
16 | + required: true | ||
17 | + - ref: hash | ||
18 | + required: true | ||
19 | + - ref: upChainStatus | ||
20 | + required: true | ||
21 | + - ref: createdAt | ||
22 | + required: true |
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: listBlockChain | ||
5 | + type: query | ||
6 | + description: 返回列表 | ||
7 | + payload: | ||
8 | + - ref: offset | ||
9 | + required: true | ||
10 | + - ref: limit | ||
11 | + required: true | ||
12 | + result: | ||
13 | + - ref: count | ||
14 | + required: true | ||
15 | + - name: upChains | ||
16 | + type: | ||
17 | + array: upChain | ||
18 | + required: true |
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: upChain | ||
5 | + type: command | ||
6 | + description: 数据上链 | ||
7 | + payload: | ||
8 | + - ref: source | ||
9 | + required: true | ||
10 | + - ref: primaryId | ||
11 | + required: true | ||
12 | + - ref: issueId | ||
13 | + required: true | ||
14 | + - ref: data | ||
15 | + required: true | ||
16 | + result: | ||
17 | + - name: upChain | ||
18 | + type: | ||
19 | + schema: upChain | ||
20 | + required: true |
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: batchEnableMenu | ||
5 | + type: command | ||
6 | + description: 批量启用菜单 | ||
7 | + payload: | ||
8 | + - name: menuIds | ||
9 | + description: 菜单ID列表 | ||
10 | + type: | ||
11 | + array: int64 | ||
12 | + - name: status | ||
13 | + description: 菜单状态 | ||
14 | + type: | ||
15 | + primitive: int | ||
16 | + result: | ||
17 | + - name: menu | ||
18 | + type: | ||
19 | + schema: menu | ||
20 | + required: true |
-
请 注册 或 登录 后发表评论