Merge branch 'master' of http://gitlab.fjmaimaimai.com/allied-creation/document
正在显示
68 个修改的文件
包含
722 行增加
和
31 行删除
1 | +swagger: "2.0" | ||
2 | +info: | ||
3 | + title: "" | ||
4 | + description: 天联基础 | ||
5 | + contact: | ||
6 | + name: "" | ||
7 | + email: "" | ||
8 | + home: "" | ||
9 | + version: 0.0.1 | ||
10 | +paths: {} | ||
11 | +definitions: | ||
12 | + LoginAccessGetQrcodeForLoginResponseBody: | ||
13 | + title: 'Mediatype identifier: LoginAccessGetQrcodeForLoginResponseBody' | ||
14 | + type: object | ||
15 | + properties: | ||
16 | + authCode: | ||
17 | + type: string | ||
18 | + description: 登录认证的凭证 | ||
19 | + imgBase64: | ||
20 | + type: string | ||
21 | + description: base64形式的二维码图片 | ||
22 | + loginAccess: | ||
23 | + $ref: '#/definitions/loginAccessResponseBody' | ||
24 | + LoginAccessLoginByAccountRequestBody: | ||
25 | + title: LoginAccessLoginByAccountRequestBody | ||
26 | + type: object | ||
27 | + properties: | ||
28 | + account: | ||
29 | + type: string | ||
30 | + description: 账号 | ||
31 | + passwd: | ||
32 | + type: string | ||
33 | + description: 密码 | ||
34 | + LoginAccessLoginByAccountResponseBody: | ||
35 | + title: 'Mediatype identifier: LoginAccessLoginByAccountResponseBody' | ||
36 | + type: object | ||
37 | + properties: | ||
38 | + authcode: | ||
39 | + type: string | ||
40 | + description: 登录认证的凭证 | ||
41 | + loginAccess: | ||
42 | + $ref: '#/definitions/loginAccessResponseBody' | ||
43 | + LoginAccessLoginByScanQrcodeRequestBody: | ||
44 | + title: LoginAccessLoginByScanQrcodeRequestBody | ||
45 | + type: object | ||
46 | + properties: | ||
47 | + authCode: | ||
48 | + type: string | ||
49 | + description: 登录认证的凭证 | ||
50 | + LoginAccessLoginByScanQrcodeResponseBody: | ||
51 | + title: 'Mediatype identifier: LoginAccessLoginByScanQrcodeResponseBody' | ||
52 | + type: object | ||
53 | + properties: | ||
54 | + accessToken: | ||
55 | + type: string | ||
56 | + description: 真正的登录凭证 | ||
57 | + isLogin: | ||
58 | + type: string | ||
59 | + description: 是否可以登录 | ||
60 | + loginAccess: | ||
61 | + $ref: '#/definitions/loginAccessResponseBody' | ||
62 | + LoginAccessLoginBySmsCodeRequestBody: | ||
63 | + title: LoginAccessLoginBySmsCodeRequestBody | ||
64 | + type: object | ||
65 | + properties: | ||
66 | + phone: | ||
67 | + type: string | ||
68 | + description: 手机号 | ||
69 | + smsCode: | ||
70 | + type: string | ||
71 | + description: 短信验证码 | ||
72 | + LoginAccessLoginBySmsCodeResponseBody: | ||
73 | + title: 'Mediatype identifier: LoginAccessLoginBySmsCodeResponseBody' | ||
74 | + type: object | ||
75 | + properties: | ||
76 | + authcode: | ||
77 | + type: string | ||
78 | + description: 登录认证的凭证 | ||
79 | + loginAccess: | ||
80 | + $ref: '#/definitions/loginAccessResponseBody' | ||
81 | + LoginAccessLoginInfoByAuthCodeRequestBody: | ||
82 | + title: LoginAccessLoginInfoByAuthCodeRequestBody | ||
83 | + type: object | ||
84 | + properties: | ||
85 | + authCode: | ||
86 | + type: string | ||
87 | + description: 登录认证的凭证 | ||
88 | + companyId: | ||
89 | + type: string | ||
90 | + description: 公司id | ||
91 | + organizationId: | ||
92 | + type: string | ||
93 | + description: 组织id | ||
94 | + LoginAccessLoginInfoByAuthCodeResponseBody: | ||
95 | + title: 'Mediatype identifier: LoginAccessLoginInfoByAuthCodeResponseBody' | ||
96 | + type: object | ||
97 | + properties: | ||
98 | + accessToken: | ||
99 | + type: string | ||
100 | + description: 登录系统的凭证 | ||
101 | + loginAccess: | ||
102 | + $ref: '#/definitions/loginAccessResponseBody' | ||
103 | + loginAccessResponseBody: | ||
104 | + title: loginAccessResponseBody | ||
105 | + type: object | ||
106 | + properties: | ||
107 | + accessExpired: | ||
108 | + type: integer | ||
109 | + description: 登录凭证过期时间,时间戳精度秒 | ||
110 | + format: int64 | ||
111 | + accessToken: | ||
112 | + type: string | ||
113 | + description: 登录凭证存储 | ||
114 | + account: | ||
115 | + type: string | ||
116 | + description: 账号 | ||
117 | + companyId: | ||
118 | + type: integer | ||
119 | + description: 公司id | ||
120 | + format: int64 | ||
121 | + createdTime: | ||
122 | + type: string | ||
123 | + description: 创建时间 | ||
124 | + format: datetime | ||
125 | + organizationId: | ||
126 | + type: integer | ||
127 | + description: 组织id | ||
128 | + format: int64 | ||
129 | + platform: | ||
130 | + type: string | ||
131 | + description: 对应平台 | ||
132 | + refreshExpired: | ||
133 | + type: integer | ||
134 | + description: 刷新登录凭证过期时间,时间戳精度秒 | ||
135 | + format: int64 | ||
136 | + refreshToken: | ||
137 | + type: string | ||
138 | + description: 刷新登录凭证 | ||
139 | + updatedTime: | ||
140 | + type: string | ||
141 | + description: 更新时间 | ||
142 | + format: datetime | ||
143 | + description: 登录凭证存储 |
1 | +version: v1 | ||
2 | +kind: Schema | ||
3 | +metadata: | ||
4 | + name: systemSetting | ||
5 | + description: 系统参数设置 | ||
6 | + attributes: | ||
7 | + - ref: companyId | ||
8 | + required: true | ||
9 | + - ref: controlLevel | ||
10 | + required: true | ||
11 | + - ref: description | ||
12 | + required: true | ||
13 | + - ref: settingCode | ||
14 | + required: true | ||
15 | + - ref: settingName | ||
16 | + required: true | ||
17 | + - ref: systemSettingId | ||
18 | + required: true | ||
19 | + - ref: value | ||
20 | + required: true | ||
21 | + - ref: valueType | ||
22 | + required: true |
@@ -5,14 +5,14 @@ metadata: | @@ -5,14 +5,14 @@ metadata: | ||
5 | type: query | 5 | type: query |
6 | description: 返回数据字典设置列表 | 6 | description: 返回数据字典设置列表 |
7 | payload: | 7 | payload: |
8 | - - ref: offset | ||
9 | - required: true | ||
10 | - - ref: limit | ||
11 | - required: true | 8 | + - ref: pageIndex |
9 | + required: true | ||
10 | + - ref: pageSize | ||
11 | + required: true | ||
12 | result: | 12 | result: |
13 | - - ref: count | ||
14 | - required: true | ||
15 | - - name: dictionarys | ||
16 | - type: | ||
17 | - array: dictionary | ||
18 | - required: true | 13 | + - ref: count |
14 | + required: true | ||
15 | + - name: dictionarys | ||
16 | + type: | ||
17 | + array: dictionary | ||
18 | + required: true |
@@ -9,14 +9,10 @@ metadata: | @@ -9,14 +9,10 @@ metadata: | ||
9 | description: 接收方用户的id | 9 | description: 接收方用户的id |
10 | type: | 10 | type: |
11 | primitive: int64 | 11 | primitive: int64 |
12 | - - name: offset | ||
13 | - description: 分页偏移量 | ||
14 | - type: | ||
15 | - primitive: int64 | ||
16 | - - name: limit | ||
17 | - description: 每页限制数量 默认20 | ||
18 | - type: | ||
19 | - primitive: int64 | 12 | + - ref: pageIndex |
13 | + required: true | ||
14 | + - ref: pageSize | ||
15 | + required: true | ||
20 | - name: isRead | 16 | - name: isRead |
21 | description: 是否是已读 | 17 | description: 是否是已读 |
22 | type: | 18 | type: |
@@ -5,14 +5,14 @@ metadata: | @@ -5,14 +5,14 @@ metadata: | ||
5 | type: query | 5 | type: query |
6 | description: 返回编排消息通知内容列表 | 6 | description: 返回编排消息通知内容列表 |
7 | payload: | 7 | payload: |
8 | - - ref: offset | ||
9 | - required: true | ||
10 | - - ref: limit | ||
11 | - required: true | 8 | + - ref: pageIndex |
9 | + required: true | ||
10 | + - ref: pageSize | ||
11 | + required: true | ||
12 | result: | 12 | result: |
13 | - - ref: count | ||
14 | - required: true | ||
15 | - - name: noticeSettings | ||
16 | - type: | ||
17 | - array: noticeSetting | ||
18 | - required: true | 13 | + - ref: count |
14 | + required: true | ||
15 | + - name: noticeSettings | ||
16 | + type: | ||
17 | + array: noticeSetting | ||
18 | + required: true |
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: getSystemSetting | ||
5 | + type: query | ||
6 | + description: 返回用户的系统设置 | ||
7 | + payload: | ||
8 | + - ref: settingCode | ||
9 | + required: true | ||
10 | + - name: companyId | ||
11 | + description: 企业id | ||
12 | + type: | ||
13 | + primitive: int64 | ||
14 | + result: | ||
15 | + - name: systemSetting | ||
16 | + type: | ||
17 | + schema: systemSetting | ||
18 | + required: true |
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: listSystemSetting | ||
5 | + type: query | ||
6 | + description: 返回用户的系统设置列表 | ||
7 | + payload: | ||
8 | + - name: companyId | ||
9 | + description: 公司id | ||
10 | + type: | ||
11 | + primitive: int64 | ||
12 | + - ref: settingCode | ||
13 | + result: | ||
14 | + - name: systemSettings | ||
15 | + type: | ||
16 | + array: systemSetting | ||
17 | + required: true |
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: updateSystemSetting | ||
5 | + type: command | ||
6 | + description: 更新用户的系统设置 | ||
7 | + payload: | ||
8 | + - ref: settingCode | ||
9 | + required: true | ||
10 | + - ref: companyId | ||
11 | + required: true | ||
12 | + result: | ||
13 | + - name: systemSetting | ||
14 | + type: | ||
15 | + schema: systemSetting | ||
16 | + required: true |
1 | +version: v1 | ||
2 | +kind: HttpApi | ||
3 | +metadata: | ||
4 | + service: cooperationContractUndertaker | ||
5 | + path: /cooperation-contract-undertakers | ||
6 | + endpoints: | ||
7 | + - method: createCooperationContractUndertaker | ||
8 | + route: | ||
9 | + post: / | ||
10 | + - method: updateCooperationContractUndertaker | ||
11 | + route: | ||
12 | + put: /{cooperationContractUndertakerId} | ||
13 | + - method: getCooperationContractUndertaker | ||
14 | + route: | ||
15 | + get: /{cooperationContractUndertakerId} | ||
16 | + - method: removeCooperationContractUndertaker | ||
17 | + route: | ||
18 | + delete: /{cooperationContractUndertakerId} | ||
19 | + - method: listCooperationContractUndertaker | ||
20 | + route: | ||
21 | + get: / | ||
22 | + params: | ||
23 | + - name: offset | ||
24 | + - name: limit |
@@ -19,6 +19,9 @@ metadata: | @@ -19,6 +19,9 @@ metadata: | ||
19 | - method: searchDividendsOrder | 19 | - method: searchDividendsOrder |
20 | route: | 20 | route: |
21 | post: /search | 21 | post: /search |
22 | + - method: searchDividendsOrderNumber | ||
23 | + route: | ||
24 | + post: /search-order-number | ||
22 | - method: listDividendsOrders | 25 | - method: listDividendsOrders |
23 | route: | 26 | route: |
24 | get: / | 27 | get: / |
1 | + | ||
2 | +func CreateCooperationContractUndertakerRepository(options map[string]interface{}) (domain.CooperationContractUndertakerRepository, error) { | ||
3 | + var transactionContext *pg.TransactionContext | ||
4 | + if value, ok := options["transactionContext"]; ok { | ||
5 | + transactionContext = value.(*pg.TransactionContext) | ||
6 | + } | ||
7 | + return repository.NewCooperationContractUndertakerRepository(transactionContext) | ||
8 | +} |
1 | +package domain | ||
2 | + | ||
3 | +// 共创合约承接人 | ||
4 | +type CooperationContractUndertaker struct { | ||
5 | +} | ||
6 | + | ||
7 | +type CooperationContractUndertakerRepository interface { | ||
8 | + Save(cooperationContractUndertaker *CooperationContractUndertaker) (*CooperationContractUndertaker, error) | ||
9 | + Remove(cooperationContractUndertaker *CooperationContractUndertaker) (*CooperationContractUndertaker, error) | ||
10 | + FindOne(queryOptions map[string]interface{}) (*CooperationContractUndertaker, error) | ||
11 | + Find(queryOptions map[string]interface{}) (int64, []*CooperationContractUndertaker, error) | ||
12 | +} | ||
13 | + | ||
14 | +func (cooperationContractUndertaker *CooperationContractUndertaker) Identify() interface{} { | ||
15 | + if cooperationContractUndertaker.cooperationContractUndertakerId == 0 { | ||
16 | + return nil | ||
17 | + } | ||
18 | + return cooperationContractUndertaker.cooperationContractUndertakerId | ||
19 | +} | ||
20 | + | ||
21 | +func (cooperationContractUndertaker *CooperationContractUndertaker) Update(data map[string]interface{}) error { | ||
22 | + return nil | ||
23 | +} |
allied-creation-cooperation/pkg/infrastructure/pg/transform/cooperation_contract_undertaker.go
0 → 100644
1 | +package transform | ||
2 | + | ||
3 | +import ( | ||
4 | + "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/domain" | ||
5 | + "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/infrastructure/pg/models" | ||
6 | +) | ||
7 | + | ||
8 | +func TransformToCooperationContractUndertakerDomainModelFromPgModels(cooperationContractUndertakerModel *models.CooperationContractUndertaker) (*domain.CooperationContractUndertaker, error) { | ||
9 | + return &domain.CooperationContractUndertaker{}, nil | ||
10 | +} |
1 | +package repository | ||
2 | + | ||
3 | +import ( | ||
4 | + "fmt" | ||
5 | + | ||
6 | + "github.com/linmadan/egglib-go/persistent/pg/sqlbuilder" | ||
7 | + pgTransaction "github.com/linmadan/egglib-go/transaction/pg" | ||
8 | + "github.com/linmadan/egglib-go/utils/snowflake" | ||
9 | + "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/domain" | ||
10 | + "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/infrastructure/pg/models" | ||
11 | + "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/infrastructure/pg/transform" | ||
12 | +) | ||
13 | + | ||
14 | +type CooperationContractUndertakerRepository struct { | ||
15 | + transactionContext *pgTransaction.TransactionContext | ||
16 | +} | ||
17 | + | ||
18 | +func (repository *CooperationContractUndertakerRepository) nextIdentify() (int64, error) { | ||
19 | + IdWorker, err := snowflake.NewIdWorker(1) | ||
20 | + if err != nil { | ||
21 | + return 0, err | ||
22 | + } | ||
23 | + id, err := IdWorker.NextId() | ||
24 | + return id, err | ||
25 | +} | ||
26 | +func (repository *CooperationContractUndertakerRepository) Save(cooperationContractUndertaker *domain.CooperationContractUndertaker) (*domain.CooperationContractUndertaker, error) { | ||
27 | + sqlBuildFields := []string{} | ||
28 | + insertFieldsSnippet := sqlbuilder.SqlFieldsSnippet(sqlBuildFields) | ||
29 | + insertPlaceHoldersSnippet := sqlbuilder.SqlPlaceHoldersSnippet(sqlBuildFields) | ||
30 | + returningFieldsSnippet := sqlbuilder.SqlFieldsSnippet(sqlBuildFields) | ||
31 | + updateFields := sqlbuilder.RemoveSqlFields(sqlBuildFields, "cooperationContractUndertaker_id") | ||
32 | + updateFieldsSnippet := sqlbuilder.SqlUpdateFieldsSnippet(updateFields) | ||
33 | + tx := repository.transactionContext.PgTx | ||
34 | + if cooperationContractUndertaker.Identify() == nil { | ||
35 | + cooperationContractUndertakerId, err := repository.nextIdentify() | ||
36 | + if err != nil { | ||
37 | + return cooperationContractUndertaker, err | ||
38 | + } else { | ||
39 | + cooperationContractUndertaker.CooperationContractUndertakerId = cooperationContractUndertakerId | ||
40 | + } | ||
41 | + if _, err := tx.QueryOne( | ||
42 | + pg.Scan(), | ||
43 | + fmt.Sprintf("INSERT INTO cooperation_contract_undertakers (%s) VALUES (%s) RETURNING %s", insertFieldsSnippet, insertPlaceHoldersSnippet, returningFieldsSnippet), | ||
44 | + ); err != nil { | ||
45 | + return cooperationContractUndertaker, err | ||
46 | + } | ||
47 | + } else { | ||
48 | + if _, err := tx.QueryOne( | ||
49 | + pg.Scan(), | ||
50 | + fmt.Sprintf("UPDATE cooperation_contract_undertakers SET %s WHERE cooperation_contract_undertaker_id=? RETURNING %s", updateFieldsSnippet, returningFieldsSnippet), | ||
51 | + cooperationContractUndertaker.Identify(), | ||
52 | + ); err != nil { | ||
53 | + return cooperationContractUndertaker, err | ||
54 | + } | ||
55 | + } | ||
56 | + return cooperationContractUndertaker, nil | ||
57 | +} | ||
58 | +func (repository *CooperationContractUndertakerRepository) Remove(cooperationContractUndertaker *domain.CooperationContractUndertaker) (*domain.CooperationContractUndertaker, error) { | ||
59 | + tx := repository.transactionContext.PgTx | ||
60 | + cooperationContractUndertakerModel := new(models.CooperationContractUndertaker) | ||
61 | + cooperationContractUndertakerModel.CooperationContractUndertakerId = cooperationContractUndertaker.Identify().(int64) | ||
62 | + if _, err := tx.Model(cooperationContractUndertakerModel).WherePK().Delete(); err != nil { | ||
63 | + return cooperationContractUndertaker, err | ||
64 | + } | ||
65 | + return cooperationContractUndertaker, nil | ||
66 | +} | ||
67 | +func (repository *CooperationContractUndertakerRepository) FindOne(queryOptions map[string]interface{}) (*domain.CooperationContractUndertaker, error) { | ||
68 | + tx := repository.transactionContext.PgTx | ||
69 | + cooperationContractUndertakerModel := new(models.CooperationContractUndertaker) | ||
70 | + query := sqlbuilder.BuildQuery(tx.Model(cooperationContractUndertakerModel), queryOptions) | ||
71 | + query.SetWhereByQueryOption("cooperation_contract_undertaker.cooperation_contract_undertaker_id = ?", "cooperationContractUndertakerId") | ||
72 | + if err := query.First(); err != nil { | ||
73 | + if err.Error() == "pg: no rows in result set" { | ||
74 | + return nil, fmt.Errorf("没有此资源") | ||
75 | + } else { | ||
76 | + return nil, err | ||
77 | + } | ||
78 | + } | ||
79 | + if cooperationContractUndertakerModel.CooperationContractUndertakerId == 0 { | ||
80 | + return nil, nil | ||
81 | + } else { | ||
82 | + return transform.TransformToCooperationContractUndertakerDomainModelFromPgModels(cooperationContractUndertakerModel) | ||
83 | + } | ||
84 | +} | ||
85 | +func (repository *CooperationContractUndertakerRepository) Find(queryOptions map[string]interface{}) (int64, []*domain.CooperationContractUndertaker, error) { | ||
86 | + tx := repository.transactionContext.PgTx | ||
87 | + var cooperationContractUndertakerModels []*models.CooperationContractUndertaker | ||
88 | + cooperationContractUndertakers := make([]*domain.CooperationContractUndertaker, 0) | ||
89 | + query := sqlbuilder.BuildQuery(tx.Model(&cooperationContractUndertakerModels), queryOptions) | ||
90 | + query.SetOffsetAndLimit(20) | ||
91 | + query.SetOrderDirect("cooperation_contract_undertaker_id", "DESC") | ||
92 | + if count, err := query.SelectAndCount(); err != nil { | ||
93 | + return 0, cooperationContractUndertakers, err | ||
94 | + } else { | ||
95 | + for _, cooperationContractUndertakerModel := range cooperationContractUndertakerModels { | ||
96 | + if cooperationContractUndertaker, err := transform.TransformToCooperationContractUndertakerDomainModelFromPgModels(cooperationContractUndertakerModel); err != nil { | ||
97 | + return 0, cooperationContractUndertakers, err | ||
98 | + } else { | ||
99 | + cooperationContractUndertakers = append(cooperationContractUndertakers, cooperationContractUndertaker) | ||
100 | + } | ||
101 | + } | ||
102 | + return int64(count), cooperationContractUndertakers, nil | ||
103 | + } | ||
104 | +} | ||
105 | +func NewCooperationContractUndertakerRepository(transactionContext *pgTransaction.TransactionContext) (*CooperationContractUndertakerRepository, error) { | ||
106 | + if transactionContext == nil { | ||
107 | + return nil, fmt.Errorf("transactionContext参数不能为nil") | ||
108 | + } else { | ||
109 | + return &CooperationContractUndertakerRepository{ | ||
110 | + transactionContext: transactionContext, | ||
111 | + }, nil | ||
112 | + } | ||
113 | +} |
@@ -4,6 +4,8 @@ metadata: | @@ -4,6 +4,8 @@ metadata: | ||
4 | name: cooperationContractChangeLog | 4 | name: cooperationContractChangeLog |
5 | description: 共创合约变更日志 | 5 | description: 共创合约变更日志 |
6 | attributes: | 6 | attributes: |
7 | + - ref: cooperationContractChangeLogId | ||
8 | + required: true | ||
7 | - ref: incentivesRule | 9 | - ref: incentivesRule |
8 | required: true | 10 | required: true |
9 | - ref: incentivesRuleDetail | 11 | - ref: incentivesRuleDetail |
1 | +version: v1 | ||
2 | +kind: Schema | ||
3 | +metadata: | ||
4 | + name: cooperationContractRelevant | ||
5 | + description: 共创合约相关人 | ||
6 | + attributes: | ||
7 | + - ref: cooperationContractRelevantId | ||
8 | + required: true | ||
9 | + - ref: cooperationContractNumber | ||
10 | + required: true | ||
11 | + - ref: relevant | ||
12 | + required: true | ||
13 | + - ref: updatedAt | ||
14 | + required: true | ||
15 | + - ref: deletedAt | ||
16 | + required: true | ||
17 | + - ref: createdAt | ||
18 | + required: true |
1 | +version: v1 | ||
2 | +kind: Schema | ||
3 | +metadata: | ||
4 | + name: cooperationContractUndertaker | ||
5 | + description: 共创合约承接人 | ||
6 | + attributes: | ||
7 | + - ref: cooperationContractUndertakerId | ||
8 | + required: true | ||
9 | + - ref: cooperationContractNumber | ||
10 | + required: true | ||
11 | + - ref: undertaker | ||
12 | + required: true | ||
13 | + - ref: createdAt | ||
14 | + required: true | ||
15 | + - ref: updatedAt | ||
16 | + required: true | ||
17 | + - ref: deletedAt | ||
18 | + required: true |
@@ -25,7 +25,7 @@ metadata: | @@ -25,7 +25,7 @@ metadata: | ||
25 | description: 参与人uid,包括承接人、推荐人、关联业务员 | 25 | description: 参与人uid,包括承接人、推荐人、关联业务员 |
26 | required: true | 26 | required: true |
27 | type: | 27 | type: |
28 | - array: int64 | 28 | + schema: participator |
29 | - ref: paymentDocumentAttachment | 29 | - ref: paymentDocumentAttachment |
30 | description: 支付凭证附件 | 30 | description: 支付凭证附件 |
31 | required: true | 31 | required: true |
1 | +version: v1 | ||
2 | +kind: Schema | ||
3 | +metadata: | ||
4 | + name: participator | ||
5 | + description: 共创参与人 | ||
6 | + attributes: | ||
7 | + - ref: userId | ||
8 | + required: true | ||
9 | + - ref: userBaseId | ||
10 | + required: true | ||
11 | + - ref: org | ||
12 | + description: 用户所属的组织机构 | ||
13 | + required: true | ||
14 | + - ref: orgs | ||
15 | + description: 用户关联的组织机构 | ||
16 | + required: true | ||
17 | + - ref: department | ||
18 | + description: 用户所属的部门 | ||
19 | + required: true | ||
20 | + - ref: role | ||
21 | + required: true | ||
22 | + - ref: userInfo | ||
23 | + required: true | ||
24 | + - ref: userType | ||
25 | + required: true | ||
26 | + - ref: status | ||
27 | + required: true | ||
28 | + - ref: company | ||
29 | + required: true |
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: getCooperationContractUndertaker | ||
5 | + type: query | ||
6 | + description: 返回 | ||
7 | + payload: | ||
8 | + - ref: cooperationContractUndertakerId | ||
9 | + required: true | ||
10 | + result: | ||
11 | + - name: cooperationContractUndertaker | ||
12 | + type: | ||
13 | + schema: cooperationContractUndertaker | ||
14 | + required: true |
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: listCooperationContractUndertaker | ||
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: cooperationContractUndertakers | ||
16 | + type: | ||
17 | + array: cooperationContractUndertaker | ||
18 | + required: true |
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: removeCooperationContractUndertaker | ||
5 | + type: command | ||
6 | + description: 移除 | ||
7 | + payload: | ||
8 | + - ref: cooperationContractUndertakerId | ||
9 | + required: true | ||
10 | + result: | ||
11 | + - name: cooperationContractUndertaker | ||
12 | + type: | ||
13 | + schema: cooperationContractUndertaker | ||
14 | + required: true |
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: updateCooperationContractUndertaker | ||
5 | + type: command | ||
6 | + description: 更新 | ||
7 | + payload: | ||
8 | + - ref: cooperationContractUndertakerId | ||
9 | + required: true | ||
10 | + result: | ||
11 | + - name: cooperationContractUndertaker | ||
12 | + type: | ||
13 | + schema: cooperationContractUndertaker | ||
14 | + required: true |
@@ -5,6 +5,8 @@ metadata: | @@ -5,6 +5,8 @@ metadata: | ||
5 | type: command | 5 | type: command |
6 | description: 更新共创模式服务 | 6 | description: 更新共创模式服务 |
7 | payload: | 7 | payload: |
8 | + - ref: cooperationModeId | ||
9 | + required: true | ||
8 | - ref: cooperationModeName | 10 | - ref: cooperationModeName |
9 | required: true | 11 | required: true |
10 | - ref: cooperationModeNumber | 12 | - ref: cooperationModeNumber |
@@ -5,6 +5,8 @@ metadata: | @@ -5,6 +5,8 @@ metadata: | ||
5 | type: command | 5 | type: command |
6 | description: 更新共创项目服务 | 6 | description: 更新共创项目服务 |
7 | payload: | 7 | payload: |
8 | + - ref: cooperationProjectId | ||
9 | + required: true | ||
8 | - ref: cooperationProjectName | 10 | - ref: cooperationProjectName |
9 | required: true | 11 | required: true |
10 | - ref: cooperationProjectUndertakerType | 12 | - ref: cooperationProjectUndertakerType |
@@ -5,6 +5,8 @@ metadata: | @@ -5,6 +5,8 @@ metadata: | ||
5 | type: command | 5 | type: command |
6 | description: 更新业绩分红激励规则服务 | 6 | description: 更新业绩分红激励规则服务 |
7 | payload: | 7 | payload: |
8 | + - ref: dividendsIncentivesRuleId | ||
9 | + required: true | ||
8 | - ref: cooperationContractNumber | 10 | - ref: cooperationContractNumber |
9 | required: true | 11 | required: true |
10 | - ref: dividendsIncentivesPercentage | 12 | - ref: dividendsIncentivesPercentage |
allied-creation-cooperation/services/dividendsOrder/methods/searchDividendsOrderNumber.yaml
0 → 100644
1 | +version: v1 | ||
2 | +kind: Method | ||
3 | +metadata: | ||
4 | + name: searchDividendsOrderNumber | ||
5 | + type: query | ||
6 | + description: 查询分红订单方法 | ||
7 | + payload: | ||
8 | + - ref: dividendsOrderNumber | ||
9 | + required: false | ||
10 | + - ref: companyId | ||
11 | + required: true | ||
12 | + - ref: orgId | ||
13 | + required: true | ||
14 | + - ref: userId | ||
15 | + required: true | ||
16 | + result: | ||
17 | + - ref: dividendsOrderNumber | ||
18 | + description: 返回分红订单号 | ||
19 | + required: true |
@@ -5,6 +5,8 @@ metadata: | @@ -5,6 +5,8 @@ metadata: | ||
5 | type: command | 5 | type: command |
6 | description: 更新分红订单实体对象 | 6 | description: 更新分红订单实体对象 |
7 | payload: | 7 | payload: |
8 | + - ref: dividendsOrderId | ||
9 | + required: true | ||
8 | - ref: customerName | 10 | - ref: customerName |
9 | required: true | 11 | required: true |
10 | - ref: dividendsOrderAmount | 12 | - ref: dividendsOrderAmount |
@@ -5,6 +5,8 @@ metadata: | @@ -5,6 +5,8 @@ metadata: | ||
5 | type: command | 5 | type: command |
6 | description: 更新分红退货单服务 | 6 | description: 更新分红退货单服务 |
7 | payload: | 7 | payload: |
8 | + - ref: dividendsReturnedOrderId | ||
9 | + required: true | ||
8 | - ref: dividendsReturnedOrderRefund | 10 | - ref: dividendsReturnedOrderRefund |
9 | required: true | 11 | required: true |
10 | - ref: dividendsReturnedCustomerName | 12 | - ref: dividendsReturnedCustomerName |
@@ -5,6 +5,8 @@ metadata: | @@ -5,6 +5,8 @@ metadata: | ||
5 | type: command | 5 | type: command |
6 | description: 更新项目金额激励规则服务 | 6 | description: 更新项目金额激励规则服务 |
7 | payload: | 7 | payload: |
8 | + - ref: moneyIncentivesRuleId | ||
9 | + required: true | ||
8 | - ref: moneyIncentivesStageEnd | 10 | - ref: moneyIncentivesStageEnd |
9 | required: true | 11 | required: true |
10 | - ref: moneyIncentivesStageStart | 12 | - ref: moneyIncentivesStageStart |
-
请 注册 或 登录 后发表评论