作者 陈志颖

feat:调整CQ,增加头部信息解析

正在显示 77 个修改的文件 包含 311 行增加114 行删除
  1 +<component name="ProjectRunConfigurationManager">
  2 + <configuration default="false" name="Docker for Mac" type="docker-deploy" factoryName="dockerfile" server-name="Docker for Mac">
  3 + <deployment type="dockerfile">
  4 + <settings>
  5 + <option name="imageTag" value="" />
  6 + <option name="containerName" value="allied-creation-cooperation" />
  7 + <option name="sourceFilePath" value="Dockerfile" />
  8 + </settings>
  9 + </deployment>
  10 + <method v="2" />
  11 + </configuration>
  12 +</component>
@@ -4,7 +4,7 @@ ENV APP_DIR $GOPATH/src/allied-creation-cooperation @@ -4,7 +4,7 @@ ENV APP_DIR $GOPATH/src/allied-creation-cooperation
4 RUN mkdir -p $APP_DIR 4 RUN mkdir -p $APP_DIR
5 WORKDIR $APP_DIR/ 5 WORKDIR $APP_DIR/
6 COPY ./pkg pkg 6 COPY ./pkg pkg
7 -COPY ./conf conf 7 +# COPY ./conf conf
8 COPY ./go.mod go.mod 8 COPY ./go.mod go.mod
9 COPY ./go.sum go.sum 9 COPY ./go.sum go.sum
10 COPY ./main.go main.go 10 COPY ./main.go main.go
@@ -24,10 +24,12 @@ type CreateContractUndertakerFeedbackCommand struct { @@ -24,10 +24,12 @@ type CreateContractUndertakerFeedbackCommand struct {
24 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 24 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
25 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 25 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
26 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 26 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  27 + // 用户基础数据id
  28 + UserBaseId int64 `cname:"用户基础数据is" json:"userBaseId,string" valid:"Required"`
27 } 29 }
28 30
29 func (createContractUndertakerFeedbackCommand *CreateContractUndertakerFeedbackCommand) Valid(validation *validation.Validation) { 31 func (createContractUndertakerFeedbackCommand *CreateContractUndertakerFeedbackCommand) Valid(validation *validation.Validation) {
30 - validation.SetError("CustomValid", "未实现的自定义认证") 32 + //validation.SetError("CustomValid", "未实现的自定义认证")
31 } 33 }
32 34
33 func (createContractUndertakerFeedbackCommand *CreateContractUndertakerFeedbackCommand) ValidateCommand() error { 35 func (createContractUndertakerFeedbackCommand *CreateContractUndertakerFeedbackCommand) ValidateCommand() error {
@@ -19,10 +19,12 @@ type RemoveContractUndertakerFeedbackCommand struct { @@ -19,10 +19,12 @@ type RemoveContractUndertakerFeedbackCommand struct {
19 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 19 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
20 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 20 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
21 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 21 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  22 + // 用户基础数据id
  23 + UserBaseId int64 `cname:"用户基础数据is" json:"userBaseId,string" valid:"Required"`
22 } 24 }
23 25
24 func (removeContractUndertakerFeedbackCommand *RemoveContractUndertakerFeedbackCommand) Valid(validation *validation.Validation) { 26 func (removeContractUndertakerFeedbackCommand *RemoveContractUndertakerFeedbackCommand) Valid(validation *validation.Validation) {
25 - validation.SetError("CustomValid", "未实现的自定义认证") 27 + //validation.SetError("CustomValid", "未实现的自定义认证")
26 } 28 }
27 29
28 func (removeContractUndertakerFeedbackCommand *RemoveContractUndertakerFeedbackCommand) ValidateCommand() error { 30 func (removeContractUndertakerFeedbackCommand *RemoveContractUndertakerFeedbackCommand) ValidateCommand() error {
@@ -26,10 +26,12 @@ type UpdateContractUndertakerFeedbackCommand struct { @@ -26,10 +26,12 @@ type UpdateContractUndertakerFeedbackCommand struct {
26 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 26 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
27 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 27 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
28 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 28 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  29 + // 用户基础数据id
  30 + UserBaseId int64 `cname:"用户基础数据is" json:"userBaseId,string" valid:"Required"`
29 } 31 }
30 32
31 func (updateContractUndertakerFeedbackCommand *UpdateContractUndertakerFeedbackCommand) Valid(validation *validation.Validation) { 33 func (updateContractUndertakerFeedbackCommand *UpdateContractUndertakerFeedbackCommand) Valid(validation *validation.Validation) {
32 - validation.SetError("CustomValid", "未实现的自定义认证") 34 + //validation.SetError("CustomValid", "未实现的自定义认证")
33 } 35 }
34 36
35 func (updateContractUndertakerFeedbackCommand *UpdateContractUndertakerFeedbackCommand) ValidateCommand() error { 37 func (updateContractUndertakerFeedbackCommand *UpdateContractUndertakerFeedbackCommand) ValidateCommand() error {
@@ -19,10 +19,12 @@ type GetContractUndertakerFeedbackQuery struct { @@ -19,10 +19,12 @@ type GetContractUndertakerFeedbackQuery struct {
19 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 19 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
20 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 20 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
21 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 21 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  22 + // 用户基础数据id
  23 + UserBaseId int64 `cname:"用户基础数据is" json:"userBaseId,string" valid:"Required"`
22 } 24 }
23 25
24 func (getContractUndertakerFeedbackQuery *GetContractUndertakerFeedbackQuery) Valid(validation *validation.Validation) { 26 func (getContractUndertakerFeedbackQuery *GetContractUndertakerFeedbackQuery) Valid(validation *validation.Validation) {
25 - validation.SetError("CustomValid", "未实现的自定义认证") 27 + //validation.SetError("CustomValid", "未实现的自定义认证")
26 } 28 }
27 29
28 func (getContractUndertakerFeedbackQuery *GetContractUndertakerFeedbackQuery) ValidateQuery() error { 30 func (getContractUndertakerFeedbackQuery *GetContractUndertakerFeedbackQuery) ValidateQuery() error {
@@ -9,14 +9,10 @@ import ( @@ -9,14 +9,10 @@ import (
9 ) 9 )
10 10
11 type ListContractUndertakerFeedbackQuery struct { 11 type ListContractUndertakerFeedbackQuery struct {
12 - // 查询偏离量  
13 - Offset int `cname:"查询偏离量" json:"offset,omitempty"`  
14 - // 查询限制  
15 - Limit int `cname:"查询限制" json:"limit,omitempty"`  
16 - // 查询偏离量  
17 - PageSize int32 `cname:"查询限制" json:"pageSize,omitempty"`  
18 - // 查询限制  
19 - PageNumber int32 `cname:"查询限制" json:"pageNumber,omitempty"` 12 + // 页面大小
  13 + PageNumber int32 `cname:"页面大小" json:"pageNumber,omitempty"`
  14 + // 页面大小
  15 + PageSize int32 `cname:"页面大小" json:"pageSize,omitempty"`
20 // 承接人uid 16 // 承接人uid
21 UnderTakerUid string `cname:"承接人uid" json:"underTakerUid" valid:"Required"` 17 UnderTakerUid string `cname:"承接人uid" json:"underTakerUid" valid:"Required"`
22 // 公司ID,通过集成REST上下文获取 18 // 公司ID,通过集成REST上下文获取
@@ -25,6 +21,8 @@ type ListContractUndertakerFeedbackQuery struct { @@ -25,6 +21,8 @@ type ListContractUndertakerFeedbackQuery struct {
25 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 21 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
26 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 22 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
27 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 23 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  24 + // 用户基础数据id
  25 + UserBaseId int64 `cname:"用户基础数据is" json:"userBaseId,string" valid:"Required"`
28 } 26 }
29 27
30 func (listContractUndertakerFeedbackQuery *ListContractUndertakerFeedbackQuery) Valid(validation *validation.Validation) { 28 func (listContractUndertakerFeedbackQuery *ListContractUndertakerFeedbackQuery) Valid(validation *validation.Validation) {
@@ -9,26 +9,28 @@ import ( @@ -9,26 +9,28 @@ import (
9 ) 9 )
10 10
11 type SearchContractUndertakerFeedbackQuery struct { 11 type SearchContractUndertakerFeedbackQuery struct {
12 - // 页面大小  
13 - PageNumber int32 `cname:"页面大小" json:"pageNumber,omitempty"`  
14 - // 页面大小  
15 - PageSize int32 `cname:"页面大小" json:"pageSize,omitempty"`  
16 - // 共创合约名称  
17 - CooperationContractName string `cname:"共创合约名称" json:"cooperationContractName" valid:"Required"`  
18 - // 承接人姓名  
19 - UndertakerName string `cname:"承接人姓名" json:"undertakerName,omitempty"`  
20 // 公司ID,通过集成REST上下文获取 12 // 公司ID,通过集成REST上下文获取
21 CompanyId int64 `cname:"公司ID,通过集成REST上下文获取" json:"companyId,string" valid:"Required"` 13 CompanyId int64 `cname:"公司ID,通过集成REST上下文获取" json:"companyId,string" valid:"Required"`
22 // 组织机构ID 14 // 组织机构ID
23 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 15 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
24 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 16 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
25 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 17 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  18 + // 用户基础数据id
  19 + UserBaseId int64 `cname:"用户基础数据is" json:"userBaseId,string" valid:"Required"`
  20 + // 共创合约名称
  21 + CooperationContractName string `cname:"共创合约名称" json:"cooperationContractName" valid:"Required"`
  22 + // 承接人姓名
  23 + UndertakerName string `cname:"承接人姓名" json:"undertakerName,omitempty"`
26 // 查询关键词 24 // 查询关键词
27 MatchWord string `cname:"查询关键词" json:"matchWord,omitempty"` 25 MatchWord string `cname:"查询关键词" json:"matchWord,omitempty"`
  26 + // 页面大小
  27 + PageNumber int32 `cname:"页面大小" json:"pageNumber,omitempty"`
  28 + // 页面大小
  29 + PageSize int32 `cname:"页面大小" json:"pageSize,omitempty"`
28 } 30 }
29 31
30 func (searchContractUndertakerFeedbackQuery *SearchContractUndertakerFeedbackQuery) Valid(validation *validation.Validation) { 32 func (searchContractUndertakerFeedbackQuery *SearchContractUndertakerFeedbackQuery) Valid(validation *validation.Validation) {
31 - validation.SetError("CustomValid", "未实现的自定义认证") 33 + //validation.SetError("CustomValid", "未实现的自定义认证")
32 } 34 }
33 35
34 func (searchContractUndertakerFeedbackQuery *SearchContractUndertakerFeedbackQuery) ValidateQuery() error { 36 func (searchContractUndertakerFeedbackQuery *SearchContractUndertakerFeedbackQuery) ValidateQuery() error {
@@ -21,6 +21,8 @@ type AgreeCooperationApplicationCommand struct { @@ -21,6 +21,8 @@ type AgreeCooperationApplicationCommand struct {
21 Code string `cname:"菜单编码,APP端必须" json:"code" valid:"Required"` 21 Code string `cname:"菜单编码,APP端必须" json:"code" valid:"Required"`
22 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 22 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
23 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 23 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  24 + // 用户基础数据id
  25 + UserBaseId int64 `cname:"用户基础数据is" json:"userBaseId,string" valid:"Required"`
24 } 26 }
25 27
26 func (agreeCooperationApplicationCommand *AgreeCooperationApplicationCommand) Valid(validation *validation.Validation) { 28 func (agreeCooperationApplicationCommand *AgreeCooperationApplicationCommand) Valid(validation *validation.Validation) {
@@ -20,6 +20,8 @@ type BatchApprovalCooperationApplicationCommand struct { @@ -20,6 +20,8 @@ type BatchApprovalCooperationApplicationCommand struct {
20 Code string `cname:"菜单编码,APP端必须" json:"code" valid:"Required"` 20 Code string `cname:"菜单编码,APP端必须" json:"code" valid:"Required"`
21 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 21 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
22 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 22 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  23 + // 用户基础数据id
  24 + UserBaseId int64 `cname:"用户基础数据is" json:"userBaseId,string" valid:"Required"`
23 // 审核动作,1同意,2拒绝 25 // 审核动作,1同意,2拒绝
24 Action int32 `cname:"审核动作,1同意,2拒绝" json:"action" valid:"Required"` 26 Action int32 `cname:"审核动作,1同意,2拒绝" json:"action" valid:"Required"`
25 } 27 }
@@ -24,6 +24,8 @@ type CreateCooperationApplicationCommand struct { @@ -24,6 +24,8 @@ type CreateCooperationApplicationCommand struct {
24 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 24 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
25 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 25 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
26 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 26 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  27 + // 用户基础数据id
  28 + UserBaseId int64 `cname:"用户基础数据is" json:"userBaseId,string" valid:"Required"`
27 } 29 }
28 30
29 func (createCooperationApplicationCommand *CreateCooperationApplicationCommand) Valid(validation *validation.Validation) { 31 func (createCooperationApplicationCommand *CreateCooperationApplicationCommand) Valid(validation *validation.Validation) {
@@ -21,6 +21,8 @@ type RejectCooperationApplicationCommand struct { @@ -21,6 +21,8 @@ type RejectCooperationApplicationCommand struct {
21 Code string `cname:"菜单模块编码,APP端必须" json:"code" valid:"Required"` 21 Code string `cname:"菜单模块编码,APP端必须" json:"code" valid:"Required"`
22 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 22 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
23 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 23 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  24 + // 用户基础数据id
  25 + UserBaseId int64 `cname:"用户基础数据is" json:"userBaseId,string" valid:"Required"`
24 } 26 }
25 27
26 func (rejectCooperationApplicationCommand *RejectCooperationApplicationCommand) Valid(validation *validation.Validation) { 28 func (rejectCooperationApplicationCommand *RejectCooperationApplicationCommand) Valid(validation *validation.Validation) {
@@ -17,6 +17,8 @@ type RemoveCooperationApplicationCommand struct { @@ -17,6 +17,8 @@ type RemoveCooperationApplicationCommand struct {
17 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 17 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
18 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 18 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
19 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 19 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  20 + // 用户基础数据id
  21 + UserBaseId int64 `cname:"用户基础数据is" json:"userBaseId,string" valid:"Required"`
20 } 22 }
21 23
22 func (removeCooperationApplicationCommand *RemoveCooperationApplicationCommand) Valid(validation *validation.Validation) { 24 func (removeCooperationApplicationCommand *RemoveCooperationApplicationCommand) Valid(validation *validation.Validation) {
@@ -26,6 +26,8 @@ type UpdateCooperationApplicationCommand struct { @@ -26,6 +26,8 @@ type UpdateCooperationApplicationCommand struct {
26 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 26 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
27 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 27 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
28 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 28 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  29 + // 用户基础数据id
  30 + UserBaseId int64 `cname:"用户基础数据is" json:"userBaseId,string" valid:"Required"`
29 } 31 }
30 32
31 func (updateCooperationApplicationCommand *UpdateCooperationApplicationCommand) Valid(validation *validation.Validation) { 33 func (updateCooperationApplicationCommand *UpdateCooperationApplicationCommand) Valid(validation *validation.Validation) {
@@ -17,6 +17,8 @@ type GetCooperationApplicationQuery struct { @@ -17,6 +17,8 @@ type GetCooperationApplicationQuery struct {
17 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 17 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
18 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 18 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
19 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 19 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  20 + // 用户基础数据id
  21 + UserBaseId int64 `cname:"用户基础数据is" json:"userBaseId,string" valid:"Required"`
20 } 22 }
21 23
22 func (getCooperationApplicationQuery *GetCooperationApplicationQuery) Valid(validation *validation.Validation) { 24 func (getCooperationApplicationQuery *GetCooperationApplicationQuery) Valid(validation *validation.Validation) {
@@ -23,6 +23,8 @@ type ListCooperationApplicationQuery struct { @@ -23,6 +23,8 @@ type ListCooperationApplicationQuery struct {
23 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 23 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
24 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 24 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
25 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 25 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  26 + // 用户基础数据id
  27 + UserBaseId int64 `cname:"用户基础数据is" json:"userBaseId,string" valid:"Required"`
26 } 28 }
27 29
28 func (listCooperationApplicationQuery *ListCooperationApplicationQuery) Valid(validation *validation.Validation) { 30 func (listCooperationApplicationQuery *ListCooperationApplicationQuery) Valid(validation *validation.Validation) {
@@ -25,6 +25,8 @@ type SearchCooperationApplicationQuery struct { @@ -25,6 +25,8 @@ type SearchCooperationApplicationQuery struct {
25 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 25 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
26 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 26 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
27 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 27 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  28 + // 用户基础数据id
  29 + UserBaseId int64 `cname:"用户基础数据is" json:"userBaseId,string" valid:"Required"`
28 } 30 }
29 31
30 func (searchCooperationApplicationQuery *SearchCooperationApplicationQuery) Valid(validation *validation.Validation) { 32 func (searchCooperationApplicationQuery *SearchCooperationApplicationQuery) Valid(validation *validation.Validation) {
@@ -40,6 +40,8 @@ type CreateCooperationContractCommand struct { @@ -40,6 +40,8 @@ type CreateCooperationContractCommand struct {
40 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 40 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
41 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 41 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
42 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 42 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  43 + // 用户基础数据id
  44 + UserBaseId int64 `cname:"用户基础数据is" json:"userBaseId,string" valid:"Required"`
43 } 45 }
44 46
45 func (createCooperationContractCommand *CreateCooperationContractCommand) Valid(validation *validation.Validation) { 47 func (createCooperationContractCommand *CreateCooperationContractCommand) Valid(validation *validation.Validation) {
@@ -17,6 +17,8 @@ type RemoveCooperationContractCommand struct { @@ -17,6 +17,8 @@ type RemoveCooperationContractCommand struct {
17 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 17 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
18 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 18 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
19 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 19 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  20 + // 用户基础数据id
  21 + UserBaseId int64 `cname:"用户基础数据is" json:"userBaseId,string" valid:"Required"`
20 } 22 }
21 23
22 func (removeCooperationContractCommand *RemoveCooperationContractCommand) Valid(validation *validation.Validation) { 24 func (removeCooperationContractCommand *RemoveCooperationContractCommand) Valid(validation *validation.Validation) {
@@ -33,6 +33,8 @@ type UpdateCooperationContractCommand struct { @@ -33,6 +33,8 @@ type UpdateCooperationContractCommand struct {
33 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 33 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
34 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 34 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
35 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 35 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  36 + // 用户基础数据id
  37 + UserBaseId int64 `cname:"用户基础数据is" json:"userBaseId,string" valid:"Required"`
36 } 38 }
37 39
38 func (updateCooperationContractCommand *UpdateCooperationContractCommand) Valid(validation *validation.Validation) { 40 func (updateCooperationContractCommand *UpdateCooperationContractCommand) Valid(validation *validation.Validation) {
@@ -19,6 +19,8 @@ type GetCooperationContractQuery struct { @@ -19,6 +19,8 @@ type GetCooperationContractQuery struct {
19 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 19 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
20 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 20 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
21 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 21 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  22 + // 用户基础数据id
  23 + UserBaseId int64 `cname:"用户基础数据is" json:"userBaseId,string" valid:"Required"`
22 } 24 }
23 25
24 func (getCooperationContractQuery *GetCooperationContractQuery) Valid(validation *validation.Validation) { 26 func (getCooperationContractQuery *GetCooperationContractQuery) Valid(validation *validation.Validation) {
@@ -19,6 +19,8 @@ type ListCooperationContractQuery struct { @@ -19,6 +19,8 @@ type ListCooperationContractQuery struct {
19 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 19 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
20 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 20 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
21 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 21 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  22 + // 用户基础数据id
  23 + UserBaseId int64 `cname:"用户基础数据is" json:"userBaseId,string" valid:"Required"`
22 } 24 }
23 25
24 func (listCooperationContractQuery *ListCooperationContractQuery) Valid(validation *validation.Validation) { 26 func (listCooperationContractQuery *ListCooperationContractQuery) Valid(validation *validation.Validation) {
@@ -23,6 +23,8 @@ type SearchCooperationContractQuery struct { @@ -23,6 +23,8 @@ type SearchCooperationContractQuery struct {
23 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 23 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
24 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 24 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
25 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 25 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  26 + // 用户基础数据id
  27 + UserBaseId int64 `cname:"用户基础数据is" json:"userBaseId,string" valid:"Required"`
26 } 28 }
27 29
28 func (searchCooperationContractQuery *SearchCooperationContractQuery) Valid(validation *validation.Validation) { 30 func (searchCooperationContractQuery *SearchCooperationContractQuery) Valid(validation *validation.Validation) {
@@ -23,6 +23,8 @@ type SearchCooperationContractByUndertakerQuery struct { @@ -23,6 +23,8 @@ type SearchCooperationContractByUndertakerQuery struct {
23 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 23 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
24 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 24 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
25 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 25 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  26 + // 用户基础数据id
  27 + UserBaseId int64 `cname:"用户基础数据is" json:"userBaseId,string" valid:"Required"`
26 } 28 }
27 29
28 func (searchCooperationContractByUndertakerQuery *SearchCooperationContractByUndertakerQuery) Valid(validation *validation.Validation) { 30 func (searchCooperationContractByUndertakerQuery *SearchCooperationContractByUndertakerQuery) Valid(validation *validation.Validation) {
@@ -25,10 +25,12 @@ type CreateCooperationContractChangeLogCommand struct { @@ -25,10 +25,12 @@ type CreateCooperationContractChangeLogCommand struct {
25 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 25 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
26 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 26 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
27 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 27 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  28 + // 用户基础数据id
  29 + UserBaseId int64 `cname:"用户基础数据is" json:"userBaseId,string" valid:"Required"`
28 } 30 }
29 31
30 func (createCooperationContractChangeLogCommand *CreateCooperationContractChangeLogCommand) Valid(validation *validation.Validation) { 32 func (createCooperationContractChangeLogCommand *CreateCooperationContractChangeLogCommand) Valid(validation *validation.Validation) {
31 - validation.SetError("CustomValid", "未实现的自定义认证") 33 + //validation.SetError("CustomValid", "未实现的自定义认证")
32 } 34 }
33 35
34 func (createCooperationContractChangeLogCommand *CreateCooperationContractChangeLogCommand) ValidateCommand() error { 36 func (createCooperationContractChangeLogCommand *CreateCooperationContractChangeLogCommand) ValidateCommand() error {
@@ -17,10 +17,12 @@ type RemoveCooperationContractChangeLogCommand struct { @@ -17,10 +17,12 @@ type RemoveCooperationContractChangeLogCommand struct {
17 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 17 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
18 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 18 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
19 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 19 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  20 + // 用户基础数据id
  21 + UserBaseId int64 `cname:"用户基础数据is" json:"userBaseId,string" valid:"Required"`
20 } 22 }
21 23
22 func (removeCooperationContractChangeLogCommand *RemoveCooperationContractChangeLogCommand) Valid(validation *validation.Validation) { 24 func (removeCooperationContractChangeLogCommand *RemoveCooperationContractChangeLogCommand) Valid(validation *validation.Validation) {
23 - validation.SetError("CustomValid", "未实现的自定义认证") 25 + //validation.SetError("CustomValid", "未实现的自定义认证")
24 } 26 }
25 27
26 func (removeCooperationContractChangeLogCommand *RemoveCooperationContractChangeLogCommand) ValidateCommand() error { 28 func (removeCooperationContractChangeLogCommand *RemoveCooperationContractChangeLogCommand) ValidateCommand() error {
@@ -27,10 +27,12 @@ type UpdateCooperationContractChangeLogCommand struct { @@ -27,10 +27,12 @@ type UpdateCooperationContractChangeLogCommand struct {
27 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 27 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
28 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 28 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
29 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 29 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  30 + // 用户基础数据id
  31 + UserBaseId int64 `cname:"用户基础数据is" json:"userBaseId,string" valid:"Required"`
30 } 32 }
31 33
32 func (updateCooperationContractChangeLogCommand *UpdateCooperationContractChangeLogCommand) Valid(validation *validation.Validation) { 34 func (updateCooperationContractChangeLogCommand *UpdateCooperationContractChangeLogCommand) Valid(validation *validation.Validation) {
33 - validation.SetError("CustomValid", "未实现的自定义认证") 35 + //validation.SetError("CustomValid", "未实现的自定义认证")
34 } 36 }
35 37
36 func (updateCooperationContractChangeLogCommand *UpdateCooperationContractChangeLogCommand) ValidateCommand() error { 38 func (updateCooperationContractChangeLogCommand *UpdateCooperationContractChangeLogCommand) ValidateCommand() error {
@@ -17,10 +17,12 @@ type GetCooperationContractChangeLogQuery struct { @@ -17,10 +17,12 @@ type GetCooperationContractChangeLogQuery struct {
17 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 17 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
18 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 18 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
19 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 19 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  20 + // 用户基础数据id
  21 + UserBaseId int64 `cname:"用户基础数据is" json:"userBaseId,string" valid:"Required"`
20 } 22 }
21 23
22 func (getCooperationContractChangeLogQuery *GetCooperationContractChangeLogQuery) Valid(validation *validation.Validation) { 24 func (getCooperationContractChangeLogQuery *GetCooperationContractChangeLogQuery) Valid(validation *validation.Validation) {
23 - validation.SetError("CustomValid", "未实现的自定义认证") 25 + //validation.SetError("CustomValid", "未实现的自定义认证")
24 } 26 }
25 27
26 func (getCooperationContractChangeLogQuery *GetCooperationContractChangeLogQuery) ValidateQuery() error { 28 func (getCooperationContractChangeLogQuery *GetCooperationContractChangeLogQuery) ValidateQuery() error {
@@ -13,20 +13,18 @@ type ListCooperationContractChangeLogQuery struct { @@ -13,20 +13,18 @@ type ListCooperationContractChangeLogQuery struct {
13 PageNumber int32 `cname:"页面大小" json:"pageNumber,omitempty"` 13 PageNumber int32 `cname:"页面大小" json:"pageNumber,omitempty"`
14 // 页面大小 14 // 页面大小
15 PageSize int32 `cname:"页面大小" json:"pageSize,omitempty"` 15 PageSize int32 `cname:"页面大小" json:"pageSize,omitempty"`
16 - // 查询偏离量  
17 - Offset int `cname:"查询偏离量" json:"offset" valid:"Required"`  
18 - // 查询限制  
19 - Limit int `cname:"查询限制" json:"limit" valid:"Required"`  
20 // 公司ID,通过集成REST上下文获取 16 // 公司ID,通过集成REST上下文获取
21 CompanyId int64 `cname:"公司ID,通过集成REST上下文获取" json:"companyId,string" valid:"Required"` 17 CompanyId int64 `cname:"公司ID,通过集成REST上下文获取" json:"companyId,string" valid:"Required"`
22 // 组织机构ID 18 // 组织机构ID
23 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 19 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
24 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 20 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
25 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 21 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  22 + // 用户基础数据id
  23 + UserBaseId int64 `cname:"用户基础数据is" json:"userBaseId,string" valid:"Required"`
26 } 24 }
27 25
28 func (listCooperationContractChangeLogQuery *ListCooperationContractChangeLogQuery) Valid(validation *validation.Validation) { 26 func (listCooperationContractChangeLogQuery *ListCooperationContractChangeLogQuery) Valid(validation *validation.Validation) {
29 - validation.SetError("CustomValid", "未实现的自定义认证") 27 + //validation.SetError("CustomValid", "未实现的自定义认证")
30 } 28 }
31 29
32 func (listCooperationContractChangeLogQuery *ListCooperationContractChangeLogQuery) ValidateQuery() error { 30 func (listCooperationContractChangeLogQuery *ListCooperationContractChangeLogQuery) ValidateQuery() error {
@@ -23,10 +23,12 @@ type SearchCooperationContractChangeLogQuery struct { @@ -23,10 +23,12 @@ type SearchCooperationContractChangeLogQuery struct {
23 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 23 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
24 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 24 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
25 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 25 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  26 + // 用户基础数据id
  27 + UserBaseId int64 `cname:"用户基础数据is" json:"userBaseId,string" valid:"Required"`
26 } 28 }
27 29
28 func (searchCooperationContractChangeLogQuery *SearchCooperationContractChangeLogQuery) Valid(validation *validation.Validation) { 30 func (searchCooperationContractChangeLogQuery *SearchCooperationContractChangeLogQuery) Valid(validation *validation.Validation) {
29 - validation.SetError("CustomValid", "未实现的自定义认证") 31 + //validation.SetError("CustomValid", "未实现的自定义认证")
30 } 32 }
31 33
32 func (searchCooperationContractChangeLogQuery *SearchCooperationContractChangeLogQuery) ValidateQuery() error { 34 func (searchCooperationContractChangeLogQuery *SearchCooperationContractChangeLogQuery) ValidateQuery() error {
@@ -21,10 +21,12 @@ type CreateCooperationModeCommand struct { @@ -21,10 +21,12 @@ type CreateCooperationModeCommand struct {
21 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 21 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
22 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 22 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
23 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 23 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  24 + // 用户基础数据id
  25 + UserBaseId int64 `cname:"用户基础数据is" json:"userBaseId,string" valid:"Required"`
24 } 26 }
25 27
26 func (createCooperationModeCommand *CreateCooperationModeCommand) Valid(validation *validation.Validation) { 28 func (createCooperationModeCommand *CreateCooperationModeCommand) Valid(validation *validation.Validation) {
27 - validation.SetError("CustomValid", "未实现的自定义认证") 29 + //validation.SetError("CustomValid", "未实现的自定义认证")
28 } 30 }
29 31
30 func (createCooperationModeCommand *CreateCooperationModeCommand) ValidateCommand() error { 32 func (createCooperationModeCommand *CreateCooperationModeCommand) ValidateCommand() error {
@@ -17,10 +17,12 @@ type RemoveCooperationModeCommand struct { @@ -17,10 +17,12 @@ type RemoveCooperationModeCommand struct {
17 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 17 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
18 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 18 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
19 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 19 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  20 + // 用户基础数据id
  21 + UserBaseId int64 `cname:"用户基础数据is" json:"userBaseId,string" valid:"Required"`
20 } 22 }
21 23
22 func (removeCooperationModeCommand *RemoveCooperationModeCommand) Valid(validation *validation.Validation) { 24 func (removeCooperationModeCommand *RemoveCooperationModeCommand) Valid(validation *validation.Validation) {
23 - validation.SetError("CustomValid", "未实现的自定义认证") 25 + //validation.SetError("CustomValid", "未实现的自定义认证")
24 } 26 }
25 27
26 func (removeCooperationModeCommand *RemoveCooperationModeCommand) ValidateCommand() error { 28 func (removeCooperationModeCommand *RemoveCooperationModeCommand) ValidateCommand() error {
@@ -23,10 +23,12 @@ type UpdateCooperationModeCommand struct { @@ -23,10 +23,12 @@ type UpdateCooperationModeCommand struct {
23 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 23 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
24 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 24 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
25 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 25 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  26 + // 用户基础数据id
  27 + UserBaseId int64 `cname:"用户基础数据is" json:"userBaseId,string" valid:"Required"`
26 } 28 }
27 29
28 func (updateCooperationModeCommand *UpdateCooperationModeCommand) Valid(validation *validation.Validation) { 30 func (updateCooperationModeCommand *UpdateCooperationModeCommand) Valid(validation *validation.Validation) {
29 - validation.SetError("CustomValid", "未实现的自定义认证") 31 + //validation.SetError("CustomValid", "未实现的自定义认证")
30 } 32 }
31 33
32 func (updateCooperationModeCommand *UpdateCooperationModeCommand) ValidateCommand() error { 34 func (updateCooperationModeCommand *UpdateCooperationModeCommand) ValidateCommand() error {
@@ -17,10 +17,12 @@ type GetCooperationModeQuery struct { @@ -17,10 +17,12 @@ type GetCooperationModeQuery struct {
17 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 17 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
18 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 18 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
19 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 19 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  20 + // 用户基础数据id
  21 + UserBaseId int64 `cname:"用户基础数据is" json:"userBaseId,string" valid:"Required"`
20 } 22 }
21 23
22 func (getCooperationModeQuery *GetCooperationModeQuery) Valid(validation *validation.Validation) { 24 func (getCooperationModeQuery *GetCooperationModeQuery) Valid(validation *validation.Validation) {
23 - validation.SetError("CustomValid", "未实现的自定义认证") 25 + //validation.SetError("CustomValid", "未实现的自定义认证")
24 } 26 }
25 27
26 func (getCooperationModeQuery *GetCooperationModeQuery) ValidateQuery() error { 28 func (getCooperationModeQuery *GetCooperationModeQuery) ValidateQuery() error {
@@ -23,10 +23,12 @@ type ListCooperationModeQuery struct { @@ -23,10 +23,12 @@ type ListCooperationModeQuery struct {
23 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 23 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
24 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 24 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
25 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 25 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  26 + // 用户基础数据id
  27 + UserBaseId int64 `cname:"用户基础数据is" json:"userBaseId,string" valid:"Required"`
26 } 28 }
27 29
28 func (listCooperationModeQuery *ListCooperationModeQuery) Valid(validation *validation.Validation) { 30 func (listCooperationModeQuery *ListCooperationModeQuery) Valid(validation *validation.Validation) {
29 - validation.SetError("CustomValid", "未实现的自定义认证") 31 + //validation.SetError("CustomValid", "未实现的自定义认证")
30 } 32 }
31 33
32 func (listCooperationModeQuery *ListCooperationModeQuery) ValidateQuery() error { 34 func (listCooperationModeQuery *ListCooperationModeQuery) ValidateQuery() error {
@@ -23,10 +23,12 @@ type SearchCooperationModeQuery struct { @@ -23,10 +23,12 @@ type SearchCooperationModeQuery struct {
23 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 23 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
24 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 24 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
25 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 25 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  26 + // 用户基础数据id
  27 + UserBaseId int64 `cname:"用户基础数据is" json:"userBaseId,string" valid:"Required"`
26 } 28 }
27 29
28 func (searchCooperationModeQuery *SearchCooperationModeQuery) Valid(validation *validation.Validation) { 30 func (searchCooperationModeQuery *SearchCooperationModeQuery) Valid(validation *validation.Validation) {
29 - validation.SetError("CustomValid", "未实现的自定义认证") 31 + //validation.SetError("CustomValid", "未实现的自定义认证")
30 } 32 }
31 33
32 func (searchCooperationModeQuery *SearchCooperationModeQuery) ValidateQuery() error { 34 func (searchCooperationModeQuery *SearchCooperationModeQuery) ValidateQuery() error {
@@ -25,10 +25,12 @@ type CreateCooperationProjectCommand struct { @@ -25,10 +25,12 @@ type CreateCooperationProjectCommand struct {
25 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 25 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
26 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 26 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
27 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 27 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  28 + // 用户基础数据id
  29 + UserBaseId int64 `cname:"用户基础数据is" json:"userBaseId,string" valid:"Required"`
28 } 30 }
29 31
30 func (createCooperationProjectCommand *CreateCooperationProjectCommand) Valid(validation *validation.Validation) { 32 func (createCooperationProjectCommand *CreateCooperationProjectCommand) Valid(validation *validation.Validation) {
31 - validation.SetError("CustomValid", "未实现的自定义认证") 33 + //validation.SetError("CustomValid", "未实现的自定义认证")
32 } 34 }
33 35
34 func (createCooperationProjectCommand *CreateCooperationProjectCommand) ValidateCommand() error { 36 func (createCooperationProjectCommand *CreateCooperationProjectCommand) ValidateCommand() error {
@@ -63,7 +63,7 @@ type ReleaseCooperationProjectCommand struct { @@ -63,7 +63,7 @@ type ReleaseCooperationProjectCommand struct {
63 } 63 }
64 64
65 func (releaseCooperationProjectCommand *ReleaseCooperationProjectCommand) Valid(validation *validation.Validation) { 65 func (releaseCooperationProjectCommand *ReleaseCooperationProjectCommand) Valid(validation *validation.Validation) {
66 - validation.SetError("CustomValid", "未实现的自定义认证") 66 + //validation.SetError("CustomValid", "未实现的自定义认证")
67 } 67 }
68 68
69 func (releaseCooperationProjectCommand *ReleaseCooperationProjectCommand) ValidateCommand() error { 69 func (releaseCooperationProjectCommand *ReleaseCooperationProjectCommand) ValidateCommand() error {
@@ -17,10 +17,12 @@ type RemoveCooperationProjectCommand struct { @@ -17,10 +17,12 @@ type RemoveCooperationProjectCommand struct {
17 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 17 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
18 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 18 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
19 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 19 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  20 + // 用户基础数据id
  21 + UserBaseId int64 `cname:"用户基础数据is" json:"userBaseId,string" valid:"Required"`
20 } 22 }
21 23
22 func (removeCooperationProjectCommand *RemoveCooperationProjectCommand) Valid(validation *validation.Validation) { 24 func (removeCooperationProjectCommand *RemoveCooperationProjectCommand) Valid(validation *validation.Validation) {
23 - validation.SetError("CustomValid", "未实现的自定义认证") 25 + //validation.SetError("CustomValid", "未实现的自定义认证")
24 } 26 }
25 27
26 func (removeCooperationProjectCommand *RemoveCooperationProjectCommand) ValidateCommand() error { 28 func (removeCooperationProjectCommand *RemoveCooperationProjectCommand) ValidateCommand() error {
@@ -27,10 +27,12 @@ type UpdateCooperationProjectCommand struct { @@ -27,10 +27,12 @@ type UpdateCooperationProjectCommand struct {
27 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 27 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
28 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 28 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
29 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 29 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  30 + // 用户基础数据id
  31 + UserBaseId int64 `cname:"用户基础数据is" json:"userBaseId,string" valid:"Required"`
30 } 32 }
31 33
32 func (updateCooperationProjectCommand *UpdateCooperationProjectCommand) Valid(validation *validation.Validation) { 34 func (updateCooperationProjectCommand *UpdateCooperationProjectCommand) Valid(validation *validation.Validation) {
33 - validation.SetError("CustomValid", "未实现的自定义认证") 35 + //validation.SetError("CustomValid", "未实现的自定义认证")
34 } 36 }
35 37
36 func (updateCooperationProjectCommand *UpdateCooperationProjectCommand) ValidateCommand() error { 38 func (updateCooperationProjectCommand *UpdateCooperationProjectCommand) ValidateCommand() error {
@@ -13,10 +13,18 @@ type CheckUndertakerQuery struct { @@ -13,10 +13,18 @@ type CheckUndertakerQuery struct {
13 CooperationProjectUndertakerType []int32 `cname:"共创项目承接对象,1员工,2共创用户,3公开,可以多选" json:"cooperationProjectUndertakerType" valid:"Required"` 13 CooperationProjectUndertakerType []int32 `cname:"共创项目承接对象,1员工,2共创用户,3公开,可以多选" json:"cooperationProjectUndertakerType" valid:"Required"`
14 // 共创项目ID 14 // 共创项目ID
15 CooperationProjectId int64 `cname:"共创项目ID" json:"cooperationProjectId,string" valid:"Required"` 15 CooperationProjectId int64 `cname:"共创项目ID" json:"cooperationProjectId,string" valid:"Required"`
  16 + // 公司ID,通过集成REST上下文获取
  17 + CompanyId int64 `cname:"公司ID,通过集成REST上下文获取" json:"companyId,string" valid:"Required"`
  18 + // 组织机构ID
  19 + OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
  20 + // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
  21 + UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  22 + // 用户基础数据id
  23 + UserBaseId int64 `cname:"用户基础数据is" json:"userBaseId,string" valid:"Required"`
16 } 24 }
17 25
18 func (checkUndertakerQuery *CheckUndertakerQuery) Valid(validation *validation.Validation) { 26 func (checkUndertakerQuery *CheckUndertakerQuery) Valid(validation *validation.Validation) {
19 - validation.SetError("CustomValid", "未实现的自定义认证") 27 + //validation.SetError("CustomValid", "未实现的自定义认证")
20 } 28 }
21 29
22 func (checkUndertakerQuery *CheckUndertakerQuery) ValidateQuery() error { 30 func (checkUndertakerQuery *CheckUndertakerQuery) ValidateQuery() error {
@@ -17,10 +17,12 @@ type GetCooperationProjectQuery struct { @@ -17,10 +17,12 @@ type GetCooperationProjectQuery struct {
17 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 17 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
18 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 18 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
19 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 19 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  20 + // 用户基础数据id
  21 + UserBaseId int64 `cname:"用户基础数据is" json:"userBaseId,string" valid:"Required"`
20 } 22 }
21 23
22 func (getCooperationProjectQuery *GetCooperationProjectQuery) Valid(validation *validation.Validation) { 24 func (getCooperationProjectQuery *GetCooperationProjectQuery) Valid(validation *validation.Validation) {
23 - validation.SetError("CustomValid", "未实现的自定义认证") 25 + //validation.SetError("CustomValid", "未实现的自定义认证")
24 } 26 }
25 27
26 func (getCooperationProjectQuery *GetCooperationProjectQuery) ValidateQuery() error { 28 func (getCooperationProjectQuery *GetCooperationProjectQuery) ValidateQuery() error {
@@ -13,20 +13,18 @@ type ListCooperationProjectQuery struct { @@ -13,20 +13,18 @@ type ListCooperationProjectQuery struct {
13 PageNumber int32 `cname:"页面大小" json:"pageNumber,omitempty"` 13 PageNumber int32 `cname:"页面大小" json:"pageNumber,omitempty"`
14 // 页面大小 14 // 页面大小
15 PageSize int32 `cname:"页面大小" json:"pageSize,omitempty"` 15 PageSize int32 `cname:"页面大小" json:"pageSize,omitempty"`
16 - // 查询偏离量  
17 - Offset int `cname:"查询偏离量" json:"offset" valid:"Required"`  
18 - // 查询限制  
19 - Limit int `cname:"查询限制" json:"limit" valid:"Required"`  
20 // 公司ID,通过集成REST上下文获取 16 // 公司ID,通过集成REST上下文获取
21 CompanyId int64 `cname:"公司ID,通过集成REST上下文获取" json:"companyId,string" valid:"Required"` 17 CompanyId int64 `cname:"公司ID,通过集成REST上下文获取" json:"companyId,string" valid:"Required"`
22 // 组织机构ID 18 // 组织机构ID
23 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 19 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
24 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 20 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
25 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 21 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  22 + // 用户基础数据id
  23 + UserBaseId int64 `cname:"用户基础数据is" json:"userBaseId,string" valid:"Required"`
26 } 24 }
27 25
28 func (listCooperationProjectQuery *ListCooperationProjectQuery) Valid(validation *validation.Validation) { 26 func (listCooperationProjectQuery *ListCooperationProjectQuery) Valid(validation *validation.Validation) {
29 - validation.SetError("CustomValid", "未实现的自定义认证") 27 + //validation.SetError("CustomValid", "未实现的自定义认证")
30 } 28 }
31 29
32 func (listCooperationProjectQuery *ListCooperationProjectQuery) ValidateQuery() error { 30 func (listCooperationProjectQuery *ListCooperationProjectQuery) ValidateQuery() error {
@@ -25,10 +25,12 @@ type SearchCooperationProjectQuery struct { @@ -25,10 +25,12 @@ type SearchCooperationProjectQuery struct {
25 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 25 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
26 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 26 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
27 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 27 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  28 + // 用户基础数据id
  29 + UserBaseId int64 `cname:"用户基础数据is" json:"userBaseId,string" valid:"Required"`
28 } 30 }
29 31
30 func (searchCooperationProjectQuery *SearchCooperationProjectQuery) Valid(validation *validation.Validation) { 32 func (searchCooperationProjectQuery *SearchCooperationProjectQuery) Valid(validation *validation.Validation) {
31 - validation.SetError("CustomValid", "未实现的自定义认证") 33 + //validation.SetError("CustomValid", "未实现的自定义认证")
32 } 34 }
33 35
34 func (searchCooperationProjectQuery *SearchCooperationProjectQuery) ValidateQuery() error { 36 func (searchCooperationProjectQuery *SearchCooperationProjectQuery) ValidateQuery() error {
@@ -15,10 +15,12 @@ type CreateCreditAccountCommand struct { @@ -15,10 +15,12 @@ type CreateCreditAccountCommand struct {
15 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 15 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
16 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 16 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
17 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 17 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  18 + // 用户基础数据id
  19 + UserBaseId int64 `cname:"用户基础数据is" json:"userBaseId,string" valid:"Required"`
18 } 20 }
19 21
20 func (createCreditAccountCommand *CreateCreditAccountCommand) Valid(validation *validation.Validation) { 22 func (createCreditAccountCommand *CreateCreditAccountCommand) Valid(validation *validation.Validation) {
21 - validation.SetError("CustomValid", "未实现的自定义认证") 23 + //validation.SetError("CustomValid", "未实现的自定义认证")
22 } 24 }
23 25
24 func (createCreditAccountCommand *CreateCreditAccountCommand) ValidateCommand() error { 26 func (createCreditAccountCommand *CreateCreditAccountCommand) ValidateCommand() error {
@@ -19,10 +19,12 @@ type PayCreditAccountCommand struct { @@ -19,10 +19,12 @@ type PayCreditAccountCommand struct {
19 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 19 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
20 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 20 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
21 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 21 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  22 + // 用户基础数据id
  23 + UserBaseId int64 `cname:"用户基础数据is" json:"userBaseId,string" valid:"Required"`
22 } 24 }
23 25
24 func (payCreditAccountCommand *PayCreditAccountCommand) Valid(validation *validation.Validation) { 26 func (payCreditAccountCommand *PayCreditAccountCommand) Valid(validation *validation.Validation) {
25 - validation.SetError("CustomValid", "未实现的自定义认证") 27 + //validation.SetError("CustomValid", "未实现的自定义认证")
26 } 28 }
27 29
28 func (payCreditAccountCommand *PayCreditAccountCommand) ValidateCommand() error { 30 func (payCreditAccountCommand *PayCreditAccountCommand) ValidateCommand() error {
@@ -17,10 +17,12 @@ type RemoveCreditAccountCommand struct { @@ -17,10 +17,12 @@ type RemoveCreditAccountCommand struct {
17 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 17 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
18 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 18 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
19 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 19 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  20 + // 用户基础数据id
  21 + UserBaseId int64 `cname:"用户基础数据is" json:"userBaseId,string" valid:"Required"`
20 } 22 }
21 23
22 func (removeCreditAccountCommand *RemoveCreditAccountCommand) Valid(validation *validation.Validation) { 24 func (removeCreditAccountCommand *RemoveCreditAccountCommand) Valid(validation *validation.Validation) {
23 - validation.SetError("CustomValid", "未实现的自定义认证") 25 + //validation.SetError("CustomValid", "未实现的自定义认证")
24 } 26 }
25 27
26 func (removeCreditAccountCommand *RemoveCreditAccountCommand) ValidateCommand() error { 28 func (removeCreditAccountCommand *RemoveCreditAccountCommand) ValidateCommand() error {
@@ -17,10 +17,12 @@ type UpdateCreditAccountCommand struct { @@ -17,10 +17,12 @@ type UpdateCreditAccountCommand struct {
17 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 17 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
18 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 18 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
19 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 19 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  20 + // 用户基础数据id
  21 + UserBaseId int64 `cname:"用户基础数据is" json:"userBaseId,string" valid:"Required"`
20 } 22 }
21 23
22 func (updateCreditAccountCommand *UpdateCreditAccountCommand) Valid(validation *validation.Validation) { 24 func (updateCreditAccountCommand *UpdateCreditAccountCommand) Valid(validation *validation.Validation) {
23 - validation.SetError("CustomValid", "未实现的自定义认证") 25 + //validation.SetError("CustomValid", "未实现的自定义认证")
24 } 26 }
25 27
26 func (updateCreditAccountCommand *UpdateCreditAccountCommand) ValidateCommand() error { 28 func (updateCreditAccountCommand *UpdateCreditAccountCommand) ValidateCommand() error {
@@ -15,12 +15,14 @@ type CreditAccountRankingQuery struct { @@ -15,12 +15,14 @@ type CreditAccountRankingQuery struct {
15 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 15 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
16 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 16 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
17 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 17 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  18 + // 用户基础数据id
  19 + UserBaseId int64 `cname:"用户基础数据is" json:"userBaseId,string" valid:"Required"`
18 // 统计周期 20 // 统计周期
19 Period string `cname:"统计周期" json:"period,omitempty"` 21 Period string `cname:"统计周期" json:"period,omitempty"`
20 } 22 }
21 23
22 func (creditAccountRankingQuery *CreditAccountRankingQuery) Valid(validation *validation.Validation) { 24 func (creditAccountRankingQuery *CreditAccountRankingQuery) Valid(validation *validation.Validation) {
23 - validation.SetError("CustomValid", "未实现的自定义认证") 25 + //validation.SetError("CustomValid", "未实现的自定义认证")
24 } 26 }
25 27
26 func (creditAccountRankingQuery *CreditAccountRankingQuery) ValidateQuery() error { 28 func (creditAccountRankingQuery *CreditAccountRankingQuery) ValidateQuery() error {
@@ -17,10 +17,12 @@ type GetCreditAccountQuery struct { @@ -17,10 +17,12 @@ type GetCreditAccountQuery struct {
17 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 17 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
18 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 18 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
19 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 19 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  20 + // 用户基础数据id
  21 + UserBaseId int64 `cname:"用户基础数据is" json:"userBaseId,string" valid:"Required"`
20 } 22 }
21 23
22 func (getCreditAccountQuery *GetCreditAccountQuery) Valid(validation *validation.Validation) { 24 func (getCreditAccountQuery *GetCreditAccountQuery) Valid(validation *validation.Validation) {
23 - validation.SetError("CustomValid", "未实现的自定义认证") 25 + //validation.SetError("CustomValid", "未实现的自定义认证")
24 } 26 }
25 27
26 func (getCreditAccountQuery *GetCreditAccountQuery) ValidateQuery() error { 28 func (getCreditAccountQuery *GetCreditAccountQuery) ValidateQuery() error {
@@ -23,10 +23,12 @@ type ListCreditAccountQuery struct { @@ -23,10 +23,12 @@ type ListCreditAccountQuery struct {
23 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 23 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
24 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 24 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
25 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 25 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  26 + // 用户基础数据id
  27 + UserBaseId int64 `cname:"用户基础数据is" json:"userBaseId,string" valid:"Required"`
26 } 28 }
27 29
28 func (listCreditAccountQuery *ListCreditAccountQuery) Valid(validation *validation.Validation) { 30 func (listCreditAccountQuery *ListCreditAccountQuery) Valid(validation *validation.Validation) {
29 - validation.SetError("CustomValid", "未实现的自定义认证") 31 + //validation.SetError("CustomValid", "未实现的自定义认证")
30 } 32 }
31 33
32 func (listCreditAccountQuery *ListCreditAccountQuery) ValidateQuery() error { 34 func (listCreditAccountQuery *ListCreditAccountQuery) ValidateQuery() error {
@@ -24,6 +24,8 @@ type SearchCreditAccountQuery struct { @@ -24,6 +24,8 @@ type SearchCreditAccountQuery struct {
24 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 24 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
25 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 25 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
26 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 26 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  27 + // 用户基础数据id
  28 + UserBaseId int64 `cname:"用户基础数据is" json:"userBaseId,string" valid:"Required"`
27 // 账期结算支付状态,1待支付,2已支付,APP端结算记录返回已结算的账期结算单 29 // 账期结算支付状态,1待支付,2已支付,APP端结算记录返回已结算的账期结算单
28 PaymentStatus int32 `cname:"账期结算支付状态,1待支付,2已支付,APP端结算记录返回已结算的账期结算单" json:"paymentStatus" valid:"Required"` 30 PaymentStatus int32 `cname:"账期结算支付状态,1待支付,2已支付,APP端结算记录返回已结算的账期结算单" json:"paymentStatus" valid:"Required"`
29 // 结算周期,按年“2021”或者按月结算”2021-07“ 31 // 结算周期,按年“2021”或者按月结算”2021-07“
@@ -31,7 +33,7 @@ type SearchCreditAccountQuery struct { @@ -31,7 +33,7 @@ type SearchCreditAccountQuery struct {
31 } 33 }
32 34
33 func (searchCreditAccountQuery *SearchCreditAccountQuery) Valid(validation *validation.Validation) { 35 func (searchCreditAccountQuery *SearchCreditAccountQuery) Valid(validation *validation.Validation) {
34 - validation.SetError("CustomValid", "未实现的自定义认证") 36 + //validation.SetError("CustomValid", "未实现的自定义认证")
35 } 37 }
36 38
37 func (searchCreditAccountQuery *SearchCreditAccountQuery) ValidateQuery() error { 39 func (searchCreditAccountQuery *SearchCreditAccountQuery) ValidateQuery() error {
@@ -17,10 +17,12 @@ type CancelDividendsEstimateCommand struct { @@ -17,10 +17,12 @@ type CancelDividendsEstimateCommand struct {
17 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 17 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
18 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 18 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
19 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 19 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  20 + // 用户基础数据id
  21 + UserBaseId int64 `cname:"用户基础数据is" json:"userBaseId,string" valid:"Required"`
20 } 22 }
21 23
22 func (cancelDividendsEstimateCommand *CancelDividendsEstimateCommand) Valid(validation *validation.Validation) { 24 func (cancelDividendsEstimateCommand *CancelDividendsEstimateCommand) Valid(validation *validation.Validation) {
23 - validation.SetError("CustomValid", "未实现的自定义认证") 25 + //validation.SetError("CustomValid", "未实现的自定义认证")
24 } 26 }
25 27
26 func (cancelDividendsEstimateCommand *CancelDividendsEstimateCommand) ValidateCommand() error { 28 func (cancelDividendsEstimateCommand *CancelDividendsEstimateCommand) ValidateCommand() error {
@@ -15,10 +15,12 @@ type CreateDividendsEstimateCommand struct { @@ -15,10 +15,12 @@ type CreateDividendsEstimateCommand struct {
15 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 15 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
16 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 16 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
17 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 17 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  18 + // 用户基础数据id
  19 + UserBaseId int64 `cname:"用户基础数据is" json:"userBaseId,string" valid:"Required"`
18 } 20 }
19 21
20 func (createDividendsEstimateCommand *CreateDividendsEstimateCommand) Valid(validation *validation.Validation) { 22 func (createDividendsEstimateCommand *CreateDividendsEstimateCommand) Valid(validation *validation.Validation) {
21 - validation.SetError("CustomValid", "未实现的自定义认证") 23 + //validation.SetError("CustomValid", "未实现的自定义认证")
22 } 24 }
23 25
24 func (createDividendsEstimateCommand *CreateDividendsEstimateCommand) ValidateCommand() error { 26 func (createDividendsEstimateCommand *CreateDividendsEstimateCommand) ValidateCommand() error {
@@ -19,10 +19,12 @@ type EstimateDividendsIncentivesCommand struct { @@ -19,10 +19,12 @@ type EstimateDividendsIncentivesCommand struct {
19 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 19 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
20 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 20 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
21 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 21 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  22 + // 用户基础数据id
  23 + UserBaseId int64 `cname:"用户基础数据is" json:"userBaseId,string" valid:"Required"`
22 } 24 }
23 25
24 func (estimateDividendsIncentivesCommand *EstimateDividendsIncentivesCommand) Valid(validation *validation.Validation) { 26 func (estimateDividendsIncentivesCommand *EstimateDividendsIncentivesCommand) Valid(validation *validation.Validation) {
25 - validation.SetError("CustomValid", "未实现的自定义认证") 27 + //validation.SetError("CustomValid", "未实现的自定义认证")
26 } 28 }
27 29
28 func (estimateDividendsIncentivesCommand *EstimateDividendsIncentivesCommand) ValidateCommand() error { 30 func (estimateDividendsIncentivesCommand *EstimateDividendsIncentivesCommand) ValidateCommand() error {
@@ -21,10 +21,12 @@ type EstimateMoneyIncentivesCommand struct { @@ -21,10 +21,12 @@ type EstimateMoneyIncentivesCommand struct {
21 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 21 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
22 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 22 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
23 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 23 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  24 + // 用户基础数据id
  25 + UserBaseId int64 `cname:"用户基础数据is" json:"userBaseId,string" valid:"Required"`
24 } 26 }
25 27
26 func (estimateMoneyIncentivesCommand *EstimateMoneyIncentivesCommand) Valid(validation *validation.Validation) { 28 func (estimateMoneyIncentivesCommand *EstimateMoneyIncentivesCommand) Valid(validation *validation.Validation) {
27 - validation.SetError("CustomValid", "未实现的自定义认证") 29 + //validation.SetError("CustomValid", "未实现的自定义认证")
28 } 30 }
29 31
30 func (estimateMoneyIncentivesCommand *EstimateMoneyIncentivesCommand) ValidateCommand() error { 32 func (estimateMoneyIncentivesCommand *EstimateMoneyIncentivesCommand) ValidateCommand() error {
@@ -17,10 +17,12 @@ type RemoveDividendsEstimateCommand struct { @@ -17,10 +17,12 @@ type RemoveDividendsEstimateCommand struct {
17 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 17 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
18 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 18 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
19 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 19 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  20 + // 用户基础数据id
  21 + UserBaseId int64 `cname:"用户基础数据is" json:"userBaseId,string" valid:"Required"`
20 } 22 }
21 23
22 func (removeDividendsEstimateCommand *RemoveDividendsEstimateCommand) Valid(validation *validation.Validation) { 24 func (removeDividendsEstimateCommand *RemoveDividendsEstimateCommand) Valid(validation *validation.Validation) {
23 - validation.SetError("CustomValid", "未实现的自定义认证") 25 + //validation.SetError("CustomValid", "未实现的自定义认证")
24 } 26 }
25 27
26 func (removeDividendsEstimateCommand *RemoveDividendsEstimateCommand) ValidateCommand() error { 28 func (removeDividendsEstimateCommand *RemoveDividendsEstimateCommand) ValidateCommand() error {
@@ -17,10 +17,12 @@ type UpdateDividendsEstimateCommand struct { @@ -17,10 +17,12 @@ type UpdateDividendsEstimateCommand struct {
17 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 17 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
18 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 18 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
19 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 19 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  20 + // 用户基础数据id
  21 + UserBaseId int64 `cname:"用户基础数据is" json:"userBaseId,string" valid:"Required"`
20 } 22 }
21 23
22 func (updateDividendsEstimateCommand *UpdateDividendsEstimateCommand) Valid(validation *validation.Validation) { 24 func (updateDividendsEstimateCommand *UpdateDividendsEstimateCommand) Valid(validation *validation.Validation) {
23 - validation.SetError("CustomValid", "未实现的自定义认证") 25 + //validation.SetError("CustomValid", "未实现的自定义认证")
24 } 26 }
25 27
26 func (updateDividendsEstimateCommand *UpdateDividendsEstimateCommand) ValidateCommand() error { 28 func (updateDividendsEstimateCommand *UpdateDividendsEstimateCommand) ValidateCommand() error {
@@ -17,10 +17,12 @@ type GetDividendsEstimateQuery struct { @@ -17,10 +17,12 @@ type GetDividendsEstimateQuery struct {
17 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 17 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
18 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 18 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
19 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 19 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  20 + // 用户基础数据id
  21 + UserBaseId int64 `cname:"用户基础数据is" json:"userBaseId,string" valid:"Required"`
20 } 22 }
21 23
22 func (getDividendsEstimateQuery *GetDividendsEstimateQuery) Valid(validation *validation.Validation) { 24 func (getDividendsEstimateQuery *GetDividendsEstimateQuery) Valid(validation *validation.Validation) {
23 - validation.SetError("CustomValid", "未实现的自定义认证") 25 + //validation.SetError("CustomValid", "未实现的自定义认证")
24 } 26 }
25 27
26 func (getDividendsEstimateQuery *GetDividendsEstimateQuery) ValidateQuery() error { 28 func (getDividendsEstimateQuery *GetDividendsEstimateQuery) ValidateQuery() error {
@@ -9,6 +9,10 @@ import ( @@ -9,6 +9,10 @@ import (
9 ) 9 )
10 10
11 type ListDividendsEstimateQuery struct { 11 type ListDividendsEstimateQuery struct {
  12 + // 页面大小
  13 + PageNumber int32 `cname:"页面大小" json:"pageNumber,omitempty"`
  14 + // 页面大小
  15 + PageSize int32 `cname:"页面大小" json:"pageSize,omitempty"`
12 // 查询偏离量 16 // 查询偏离量
13 Offset int `cname:"查询偏离量" json:"offset" valid:"Required"` 17 Offset int `cname:"查询偏离量" json:"offset" valid:"Required"`
14 // 查询限制 18 // 查询限制
@@ -19,10 +23,12 @@ type ListDividendsEstimateQuery struct { @@ -19,10 +23,12 @@ type ListDividendsEstimateQuery struct {
19 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 23 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
20 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 24 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
21 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 25 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  26 + // 用户基础数据id
  27 + UserBaseId int64 `cname:"用户基础数据is" json:"userBaseId,string" valid:"Required"`
22 } 28 }
23 29
24 func (listDividendsEstimateQuery *ListDividendsEstimateQuery) Valid(validation *validation.Validation) { 30 func (listDividendsEstimateQuery *ListDividendsEstimateQuery) Valid(validation *validation.Validation) {
25 - validation.SetError("CustomValid", "未实现的自定义认证") 31 + //validation.SetError("CustomValid", "未实现的自定义认证")
26 } 32 }
27 33
28 func (listDividendsEstimateQuery *ListDividendsEstimateQuery) ValidateQuery() error { 34 func (listDividendsEstimateQuery *ListDividendsEstimateQuery) ValidateQuery() error {
@@ -19,10 +19,12 @@ type ListDividendsIncentivesQuery struct { @@ -19,10 +19,12 @@ type ListDividendsIncentivesQuery struct {
19 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 19 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
20 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 20 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
21 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 21 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  22 + // 用户基础数据id
  23 + UserBaseId int64 `cname:"用户基础数据is" json:"userBaseId,string" valid:"Required"`
22 } 24 }
23 25
24 func (listDividendsIncentivesQuery *ListDividendsIncentivesQuery) Valid(validation *validation.Validation) { 26 func (listDividendsIncentivesQuery *ListDividendsIncentivesQuery) Valid(validation *validation.Validation) {
25 - validation.SetError("CustomValid", "未实现的自定义认证") 27 + //validation.SetError("CustomValid", "未实现的自定义认证")
26 } 28 }
27 29
28 func (listDividendsIncentivesQuery *ListDividendsIncentivesQuery) ValidateQuery() error { 30 func (listDividendsIncentivesQuery *ListDividendsIncentivesQuery) ValidateQuery() error {
@@ -19,10 +19,12 @@ type ListMoneyIncentivesQuery struct { @@ -19,10 +19,12 @@ type ListMoneyIncentivesQuery struct {
19 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 19 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
20 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 20 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
21 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 21 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  22 + // 用户基础数据id
  23 + UserBaseId int64 `cname:"用户基础数据is" json:"userBaseId,string" valid:"Required"`
22 } 24 }
23 25
24 func (listMoneyIncentivesQuery *ListMoneyIncentivesQuery) Valid(validation *validation.Validation) { 26 func (listMoneyIncentivesQuery *ListMoneyIncentivesQuery) Valid(validation *validation.Validation) {
25 - validation.SetError("CustomValid", "未实现的自定义认证") 27 + //validation.SetError("CustomValid", "未实现的自定义认证")
26 } 28 }
27 29
28 func (listMoneyIncentivesQuery *ListMoneyIncentivesQuery) ValidateQuery() error { 30 func (listMoneyIncentivesQuery *ListMoneyIncentivesQuery) ValidateQuery() error {
@@ -19,10 +19,12 @@ type SearchDividendsEstimateQuery struct { @@ -19,10 +19,12 @@ type SearchDividendsEstimateQuery struct {
19 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 19 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
20 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 20 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
21 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 21 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  22 + // 用户基础数据id
  23 + UserBaseId int64 `cname:"用户基础数据is" json:"userBaseId,string" valid:"Required"`
22 } 24 }
23 25
24 func (searchDividendsEstimateQuery *SearchDividendsEstimateQuery) Valid(validation *validation.Validation) { 26 func (searchDividendsEstimateQuery *SearchDividendsEstimateQuery) Valid(validation *validation.Validation) {
25 - validation.SetError("CustomValid", "未实现的自定义认证") 27 + //validation.SetError("CustomValid", "未实现的自定义认证")
26 } 28 }
27 29
28 func (searchDividendsEstimateQuery *SearchDividendsEstimateQuery) ValidateQuery() error { 30 func (searchDividendsEstimateQuery *SearchDividendsEstimateQuery) ValidateQuery() error {
@@ -19,10 +19,12 @@ type SearchDividendsIncentivesQuery struct { @@ -19,10 +19,12 @@ type SearchDividendsIncentivesQuery struct {
19 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 19 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
20 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 20 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
21 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 21 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  22 + // 用户基础数据id
  23 + UserBaseId int64 `cname:"用户基础数据is" json:"userBaseId,string" valid:"Required"`
22 } 24 }
23 25
24 func (searchDividendsIncentivesQuery *SearchDividendsIncentivesQuery) Valid(validation *validation.Validation) { 26 func (searchDividendsIncentivesQuery *SearchDividendsIncentivesQuery) Valid(validation *validation.Validation) {
25 - validation.SetError("CustomValid", "未实现的自定义认证") 27 + //validation.SetError("CustomValid", "未实现的自定义认证")
26 } 28 }
27 29
28 func (searchDividendsIncentivesQuery *SearchDividendsIncentivesQuery) ValidateQuery() error { 30 func (searchDividendsIncentivesQuery *SearchDividendsIncentivesQuery) ValidateQuery() error {
@@ -19,10 +19,12 @@ type SearchMoneyIncentivesQuery struct { @@ -19,10 +19,12 @@ type SearchMoneyIncentivesQuery struct {
19 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"` 19 OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
20 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员 20 // 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
21 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"` 21 UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
  22 + // 用户基础数据id
  23 + UserBaseId int64 `cname:"用户基础数据is" json:"userBaseId,string" valid:"Required"`
22 } 24 }
23 25
24 func (searchMoneyIncentivesQuery *SearchMoneyIncentivesQuery) Valid(validation *validation.Validation) { 26 func (searchMoneyIncentivesQuery *SearchMoneyIncentivesQuery) Valid(validation *validation.Validation) {
25 - validation.SetError("CustomValid", "未实现的自定义认证") 27 + //validation.SetError("CustomValid", "未实现的自定义认证")
26 } 28 }
27 29
28 func (searchMoneyIncentivesQuery *SearchMoneyIncentivesQuery) ValidateQuery() error { 30 func (searchMoneyIncentivesQuery *SearchMoneyIncentivesQuery) ValidateQuery() error {
@@ -9,6 +9,10 @@ import ( @@ -9,6 +9,10 @@ import (
9 ) 9 )
10 10
11 type ListDividendsOrdersQuery struct { 11 type ListDividendsOrdersQuery struct {
  12 + // 页面大小
  13 + PageNumber int32 `cname:"页面大小" json:"pageNumber,omitempty"`
  14 + // 页面大小
  15 + PageSize int32 `cname:"页面大小" json:"pageSize,omitempty"`
12 // 查询偏离量 16 // 查询偏离量
13 Offset int `cname:"查询偏离量" json:"offset" valid:"Required"` 17 Offset int `cname:"查询偏离量" json:"offset" valid:"Required"`
14 // 查询限制 18 // 查询限制
@@ -9,6 +9,10 @@ import ( @@ -9,6 +9,10 @@ import (
9 ) 9 )
10 10
11 type ListDividendsReturnedOrderQuery struct { 11 type ListDividendsReturnedOrderQuery struct {
  12 + // 页面大小
  13 + PageNumber int32 `cname:"页面大小" json:"pageNumber,omitempty"`
  14 + // 页面大小
  15 + PageSize int32 `cname:"页面大小" json:"pageSize,omitempty"`
12 // 查询偏离量 16 // 查询偏离量
13 Offset int `cname:"查询偏离量" json:"offset" valid:"Required"` 17 Offset int `cname:"查询偏离量" json:"offset" valid:"Required"`
14 // 查询限制 18 // 查询限制
  1 +package controllers
  2 +
  3 +import (
  4 + "github.com/beego/beego/v2/server/web/context"
  5 + "github.com/linmadan/egglib-go/web/beego"
  6 + "strconv"
  7 +)
  8 +
  9 +type BaseController struct {
  10 + beego.BaseController
  11 +}
  12 +
  13 +type RequestHeader struct {
  14 + // 公司id
  15 + CompanyId int64
  16 + // 组织机构id
  17 + OrgId int64
  18 + // 用户id
  19 + UserId int64
  20 + // 用户基础数据id
  21 + UserBaseId int64
  22 +}
  23 +
  24 +// GetRequestHeader 获取请求头信息
  25 +func (controller *BaseController) GetRequestHeader(ctx *context.Context) *RequestHeader {
  26 + header := &RequestHeader{}
  27 + header.CompanyId, _ = strconv.ParseInt(ctx.Input.Header("companyid"), 10, 64)
  28 + header.OrgId, _ = strconv.ParseInt(ctx.Input.Header("orgid"), 10, 64)
  29 + header.UserId, _ = strconv.ParseInt(ctx.Input.Header("userid"), 10, 64)
  30 + header.UserBaseId, _ = strconv.ParseInt(ctx.Input.Header("userbaseid"), 10, 64)
  31 + return header
  32 +}
1 package controllers 1 package controllers
2 2
3 import ( 3 import (
4 - "github.com/linmadan/egglib-go/web/beego"  
5 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/contractUndertakerFeedback/command" 4 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/contractUndertakerFeedback/command"
6 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/contractUndertakerFeedback/query" 5 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/contractUndertakerFeedback/query"
7 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/contractUndertakerFeedback/service" 6 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/contractUndertakerFeedback/service"
8 ) 7 )
9 8
10 type ContractUndertakerFeedbackController struct { 9 type ContractUndertakerFeedbackController struct {
11 - beego.BaseController 10 + BaseController
12 } 11 }
13 12
14 func (controller *ContractUndertakerFeedbackController) CreateContractUndertakerFeedback() { 13 func (controller *ContractUndertakerFeedbackController) CreateContractUndertakerFeedback() {
@@ -32,6 +31,13 @@ func (controller *ContractUndertakerFeedbackController) UpdateContractUndertaker @@ -32,6 +31,13 @@ func (controller *ContractUndertakerFeedbackController) UpdateContractUndertaker
32 func (controller *ContractUndertakerFeedbackController) GetContractUndertakerFeedback() { 31 func (controller *ContractUndertakerFeedbackController) GetContractUndertakerFeedback() {
33 contractUndertakerFeedbackService := service.NewContractUndertakerFeedbackService(nil) 32 contractUndertakerFeedbackService := service.NewContractUndertakerFeedbackService(nil)
34 getContractUndertakerFeedbackQuery := &query.GetContractUndertakerFeedbackQuery{} 33 getContractUndertakerFeedbackQuery := &query.GetContractUndertakerFeedbackQuery{}
  34 + // 解析头部信息
  35 + header := controller.GetRequestHeader(controller.Ctx)
  36 + getContractUndertakerFeedbackQuery.CompanyId = header.CompanyId
  37 + getContractUndertakerFeedbackQuery.OrgId = header.OrgId
  38 + getContractUndertakerFeedbackQuery.UserId = header.UserId
  39 + getContractUndertakerFeedbackQuery.UserBaseId = header.UserBaseId
  40 + // 解析路径参数
35 contractUndertakerFeedbackId := controller.GetString(":contractUndertakerFeedbackId") 41 contractUndertakerFeedbackId := controller.GetString(":contractUndertakerFeedbackId")
36 getContractUndertakerFeedbackQuery.FeedbackId = contractUndertakerFeedbackId 42 getContractUndertakerFeedbackQuery.FeedbackId = contractUndertakerFeedbackId
37 data, err := contractUndertakerFeedbackService.GetContractUndertakerFeedback(getContractUndertakerFeedbackQuery) 43 data, err := contractUndertakerFeedbackService.GetContractUndertakerFeedback(getContractUndertakerFeedbackQuery)
@@ -42,6 +48,13 @@ func (controller *ContractUndertakerFeedbackController) RemoveContractUndertaker @@ -42,6 +48,13 @@ func (controller *ContractUndertakerFeedbackController) RemoveContractUndertaker
42 contractUndertakerFeedbackService := service.NewContractUndertakerFeedbackService(nil) 48 contractUndertakerFeedbackService := service.NewContractUndertakerFeedbackService(nil)
43 removeContractUndertakerFeedbackCommand := &command.RemoveContractUndertakerFeedbackCommand{} 49 removeContractUndertakerFeedbackCommand := &command.RemoveContractUndertakerFeedbackCommand{}
44 controller.Unmarshal(removeContractUndertakerFeedbackCommand) 50 controller.Unmarshal(removeContractUndertakerFeedbackCommand)
  51 + // 解析头部信息
  52 + header := controller.GetRequestHeader(controller.Ctx)
  53 + removeContractUndertakerFeedbackCommand.CompanyId = header.CompanyId
  54 + removeContractUndertakerFeedbackCommand.OrgId = header.OrgId
  55 + removeContractUndertakerFeedbackCommand.UserId = header.UserId
  56 + removeContractUndertakerFeedbackCommand.UserBaseId = header.UserBaseId
  57 + // 解析路径参数
45 contractUndertakerFeedbackId := controller.GetString(":contractUndertakerFeedbackId") 58 contractUndertakerFeedbackId := controller.GetString(":contractUndertakerFeedbackId")
46 removeContractUndertakerFeedbackCommand.FeedbackId = contractUndertakerFeedbackId 59 removeContractUndertakerFeedbackCommand.FeedbackId = contractUndertakerFeedbackId
47 data, err := contractUndertakerFeedbackService.RemoveContractUndertakerFeedback(removeContractUndertakerFeedbackCommand) 60 data, err := contractUndertakerFeedbackService.RemoveContractUndertakerFeedback(removeContractUndertakerFeedbackCommand)
@@ -51,6 +64,17 @@ func (controller *ContractUndertakerFeedbackController) RemoveContractUndertaker @@ -51,6 +64,17 @@ func (controller *ContractUndertakerFeedbackController) RemoveContractUndertaker
51 func (controller *ContractUndertakerFeedbackController) SearchContractUndertakerFeedback() { 64 func (controller *ContractUndertakerFeedbackController) SearchContractUndertakerFeedback() {
52 contractUndertakerFeedbackService := service.NewContractUndertakerFeedbackService(nil) 65 contractUndertakerFeedbackService := service.NewContractUndertakerFeedbackService(nil)
53 searchContractUndertakerFeedbackQuery := &query.SearchContractUndertakerFeedbackQuery{} 66 searchContractUndertakerFeedbackQuery := &query.SearchContractUndertakerFeedbackQuery{}
  67 + // 解析头部信息
  68 + header := controller.GetRequestHeader(controller.Ctx)
  69 + searchContractUndertakerFeedbackQuery.CompanyId = header.CompanyId
  70 + searchContractUndertakerFeedbackQuery.OrgId = header.OrgId
  71 + searchContractUndertakerFeedbackQuery.UserId = header.UserId
  72 + searchContractUndertakerFeedbackQuery.UserBaseId = header.UserBaseId
  73 + // 获取路径参数
  74 + pageSize, _ := controller.GetInt32("pageSize")
  75 + searchContractUndertakerFeedbackQuery.PageSize = pageSize
  76 + pageNumber, _ := controller.GetInt32("pageNumber")
  77 + searchContractUndertakerFeedbackQuery.PageNumber = pageNumber
54 data, err := contractUndertakerFeedbackService.SearchContractUndertakerFeedback(searchContractUndertakerFeedbackQuery) 78 data, err := contractUndertakerFeedbackService.SearchContractUndertakerFeedback(searchContractUndertakerFeedbackQuery)
55 controller.Response(data, err) 79 controller.Response(data, err)
56 } 80 }
@@ -58,10 +82,17 @@ func (controller *ContractUndertakerFeedbackController) SearchContractUndertaker @@ -58,10 +82,17 @@ func (controller *ContractUndertakerFeedbackController) SearchContractUndertaker
58 func (controller *ContractUndertakerFeedbackController) ListContractUndertakerFeedback() { 82 func (controller *ContractUndertakerFeedbackController) ListContractUndertakerFeedback() {
59 contractUndertakerFeedbackService := service.NewContractUndertakerFeedbackService(nil) 83 contractUndertakerFeedbackService := service.NewContractUndertakerFeedbackService(nil)
60 listContractUndertakerFeedbackQuery := &query.ListContractUndertakerFeedbackQuery{} 84 listContractUndertakerFeedbackQuery := &query.ListContractUndertakerFeedbackQuery{}
61 - offset, _ := controller.GetInt("offset")  
62 - listContractUndertakerFeedbackQuery.Offset = offset  
63 - limit, _ := controller.GetInt("limit")  
64 - listContractUndertakerFeedbackQuery.Limit = limit 85 + // 解析头部信息
  86 + header := controller.GetRequestHeader(controller.Ctx)
  87 + listContractUndertakerFeedbackQuery.CompanyId = header.CompanyId
  88 + listContractUndertakerFeedbackQuery.OrgId = header.OrgId
  89 + listContractUndertakerFeedbackQuery.UserId = header.UserId
  90 + listContractUndertakerFeedbackQuery.UserBaseId = header.UserBaseId
  91 + // 获取路径参数
  92 + pageSize, _ := controller.GetInt32("pageSize")
  93 + listContractUndertakerFeedbackQuery.PageSize = pageSize
  94 + pageNumber, _ := controller.GetInt32("pageNumber")
  95 + listContractUndertakerFeedbackQuery.PageNumber = pageNumber
65 data, err := contractUndertakerFeedbackService.ListContractUndertakerFeedback(listContractUndertakerFeedbackQuery) 96 data, err := contractUndertakerFeedbackService.ListContractUndertakerFeedback(listContractUndertakerFeedbackQuery)
66 controller.Response(data, err) 97 controller.Response(data, err)
67 } 98 }
1 package controllers 1 package controllers
2 2
3 import ( 3 import (
4 - "github.com/linmadan/egglib-go/web/beego"  
5 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/cooperationApplication/command" 4 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/cooperationApplication/command"
6 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/cooperationApplication/query" 5 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/cooperationApplication/query"
7 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/cooperationApplication/service" 6 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/cooperationApplication/service"
8 ) 7 )
9 8
10 type CooperationApplicationController struct { 9 type CooperationApplicationController struct {
11 - beego.BaseController 10 + BaseController
12 } 11 }
13 12
14 func (controller *CooperationApplicationController) ApplyForCooperation() { 13 func (controller *CooperationApplicationController) ApplyForCooperation() {
1 package controllers 1 package controllers
2 2
3 import ( 3 import (
4 - "github.com/linmadan/egglib-go/web/beego"  
5 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/cooperationContract/command" 4 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/cooperationContract/command"
6 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/cooperationContract/query" 5 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/cooperationContract/query"
7 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/cooperationContract/service" 6 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/cooperationContract/service"
8 ) 7 )
9 8
10 type CooperationContractController struct { 9 type CooperationContractController struct {
11 - beego.BaseController 10 + BaseController
12 } 11 }
13 12
14 func (controller *CooperationContractController) CreateCooperationContract() { 13 func (controller *CooperationContractController) CreateCooperationContract() {
@@ -65,10 +64,10 @@ func (controller *CooperationContractController) SearchCooperationContractByUnde @@ -65,10 +64,10 @@ func (controller *CooperationContractController) SearchCooperationContractByUnde
65 func (controller *CooperationContractController) ListCooperationContract() { 64 func (controller *CooperationContractController) ListCooperationContract() {
66 cooperationContractService := service.NewCooperationContractService(nil) 65 cooperationContractService := service.NewCooperationContractService(nil)
67 listCooperationContractQuery := &query.ListCooperationContractQuery{} 66 listCooperationContractQuery := &query.ListCooperationContractQuery{}
68 - offset, _ := controller.GetInt("offset")  
69 - listCooperationContractQuery.Offset = offset  
70 - limit, _ := controller.GetInt("limit")  
71 - listCooperationContractQuery.Limit = limit 67 + pageSize, _ := controller.GetInt32("pageSize")
  68 + listCooperationContractQuery.PageSize = pageSize
  69 + pageNumber, _ := controller.GetInt32("pageNumber")
  70 + listCooperationContractQuery.PageNumber = pageNumber
72 data, err := cooperationContractService.ListCooperationContract(listCooperationContractQuery) 71 data, err := cooperationContractService.ListCooperationContract(listCooperationContractQuery)
73 controller.Response(data, err) 72 controller.Response(data, err)
74 } 73 }
1 package controllers 1 package controllers
2 2
3 import ( 3 import (
4 - "github.com/linmadan/egglib-go/web/beego"  
5 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/cooperationMode/command" 4 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/cooperationMode/command"
6 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/cooperationMode/query" 5 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/cooperationMode/query"
7 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/cooperationMode/service" 6 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/cooperationMode/service"
8 ) 7 )
9 8
10 type CooperationModeController struct { 9 type CooperationModeController struct {
11 - beego.BaseController 10 + BaseController
12 } 11 }
13 12
14 func (controller *CooperationModeController) CreateCooperationMode() { 13 func (controller *CooperationModeController) CreateCooperationMode() {
1 package controllers 1 package controllers
2 2
3 import ( 3 import (
4 - "github.com/linmadan/egglib-go/web/beego"  
5 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/cooperationProject/command" 4 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/cooperationProject/command"
6 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/cooperationProject/query" 5 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/cooperationProject/query"
7 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/cooperationProject/service" 6 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/cooperationProject/service"
8 ) 7 )
9 8
10 type CooperationProjectController struct { 9 type CooperationProjectController struct {
11 - beego.BaseController 10 + BaseController
12 } 11 }
13 12
14 func (controller *CooperationProjectController) ReleaseCooperationProject() { 13 func (controller *CooperationProjectController) ReleaseCooperationProject() {
@@ -73,10 +72,10 @@ func (controller *CooperationProjectController) CheckUndertaker() { @@ -73,10 +72,10 @@ func (controller *CooperationProjectController) CheckUndertaker() {
73 func (controller *CooperationProjectController) ListCooperationProject() { 72 func (controller *CooperationProjectController) ListCooperationProject() {
74 cooperationProjectService := service.NewCooperationProjectService(nil) 73 cooperationProjectService := service.NewCooperationProjectService(nil)
75 listCooperationProjectQuery := &query.ListCooperationProjectQuery{} 74 listCooperationProjectQuery := &query.ListCooperationProjectQuery{}
76 - offset, _ := controller.GetInt("offset")  
77 - listCooperationProjectQuery.Offset = offset  
78 - limit, _ := controller.GetInt("limit")  
79 - listCooperationProjectQuery.Limit = limit 75 + pageSize, _ := controller.GetInt32("pageSize")
  76 + listCooperationProjectQuery.PageSize = pageSize
  77 + pageNumber, _ := controller.GetInt32("pageNumber")
  78 + listCooperationProjectQuery.PageNumber = pageNumber
80 data, err := cooperationProjectService.ListCooperationProject(listCooperationProjectQuery) 79 data, err := cooperationProjectService.ListCooperationProject(listCooperationProjectQuery)
81 controller.Response(data, err) 80 controller.Response(data, err)
82 } 81 }
1 package controllers 1 package controllers
2 2
3 import ( 3 import (
4 - "github.com/linmadan/egglib-go/web/beego"  
5 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/creditAccount/command" 4 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/creditAccount/command"
6 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/creditAccount/query" 5 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/creditAccount/query"
7 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/creditAccount/service" 6 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/creditAccount/service"
8 ) 7 )
9 8
10 type CreditAccountController struct { 9 type CreditAccountController struct {
11 - beego.BaseController 10 + BaseController
12 } 11 }
13 12
14 func (controller *CreditAccountController) CreateCreditAccount() { 13 func (controller *CreditAccountController) CreateCreditAccount() {
1 package controllers 1 package controllers
2 2
3 import ( 3 import (
4 - "github.com/linmadan/egglib-go/web/beego"  
5 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/dividendsEstimate/command" 4 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/dividendsEstimate/command"
6 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/dividendsEstimate/query" 5 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/dividendsEstimate/query"
7 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/dividendsEstimate/service" 6 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/dividendsEstimate/service"
8 ) 7 )
9 8
10 type DividendsEstimateController struct { 9 type DividendsEstimateController struct {
11 - beego.BaseController 10 + BaseController
12 } 11 }
13 12
14 func (controller *DividendsEstimateController) CreateDividendsEstimate() { 13 func (controller *DividendsEstimateController) CreateDividendsEstimate() {
@@ -32,7 +31,7 @@ func (controller *DividendsEstimateController) UpdateDividendsEstimate() { @@ -32,7 +31,7 @@ func (controller *DividendsEstimateController) UpdateDividendsEstimate() {
32 func (controller *DividendsEstimateController) GetDividendsEstimate() { 31 func (controller *DividendsEstimateController) GetDividendsEstimate() {
33 dividendsEstimateService := service.NewDividendsEstimateService(nil) 32 dividendsEstimateService := service.NewDividendsEstimateService(nil)
34 getDividendsEstimateQuery := &query.GetDividendsEstimateQuery{} 33 getDividendsEstimateQuery := &query.GetDividendsEstimateQuery{}
35 - dividendsEstimateId, _ := controller.GetInt64(":dividendsEstimateId") 34 + dividendsEstimateId := controller.GetString(":dividendsEstimateId")
36 getDividendsEstimateQuery.DividendsEstimateId = dividendsEstimateId 35 getDividendsEstimateQuery.DividendsEstimateId = dividendsEstimateId
37 data, err := dividendsEstimateService.GetDividendsEstimate(getDividendsEstimateQuery) 36 data, err := dividendsEstimateService.GetDividendsEstimate(getDividendsEstimateQuery)
38 controller.Response(data, err) 37 controller.Response(data, err)
@@ -112,10 +111,10 @@ func (controller *DividendsEstimateController) SearchDividendsIncentives() { @@ -112,10 +111,10 @@ func (controller *DividendsEstimateController) SearchDividendsIncentives() {
112 func (controller *DividendsEstimateController) ListDividendsEstimate() { 111 func (controller *DividendsEstimateController) ListDividendsEstimate() {
113 dividendsEstimateService := service.NewDividendsEstimateService(nil) 112 dividendsEstimateService := service.NewDividendsEstimateService(nil)
114 listDividendsEstimateQuery := &query.ListDividendsEstimateQuery{} 113 listDividendsEstimateQuery := &query.ListDividendsEstimateQuery{}
115 - offset, _ := controller.GetInt("offset")  
116 - listDividendsEstimateQuery.Offset = offset  
117 - limit, _ := controller.GetInt("limit")  
118 - listDividendsEstimateQuery.Limit = limit 114 + pageSize, _ := controller.GetInt32("pageSize")
  115 + listDividendsEstimateQuery.PageSize = pageSize
  116 + pageNumber, _ := controller.GetInt32("pageNumber")
  117 + listDividendsEstimateQuery.PageNumber = pageNumber
119 data, err := dividendsEstimateService.ListDividendsEstimate(listDividendsEstimateQuery) 118 data, err := dividendsEstimateService.ListDividendsEstimate(listDividendsEstimateQuery)
120 controller.Response(data, err) 119 controller.Response(data, err)
121 } 120 }
1 package controllers 1 package controllers
2 2
3 import ( 3 import (
4 - "github.com/linmadan/egglib-go/web/beego"  
5 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/dividendsOrder/command" 4 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/dividendsOrder/command"
6 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/dividendsOrder/query" 5 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/dividendsOrder/query"
7 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/dividendsOrder/service" 6 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/dividendsOrder/service"
8 ) 7 )
9 8
10 type DividendsOrderController struct { 9 type DividendsOrderController struct {
11 - beego.BaseController 10 + BaseController
12 } 11 }
13 12
14 func (controller *DividendsOrderController) CreateDividendsOrder() { 13 func (controller *DividendsOrderController) CreateDividendsOrder() {
@@ -65,10 +64,10 @@ func (controller *DividendsOrderController) SearchDividendsOrderNumber() { @@ -65,10 +64,10 @@ func (controller *DividendsOrderController) SearchDividendsOrderNumber() {
65 func (controller *DividendsOrderController) ListDividendsOrders() { 64 func (controller *DividendsOrderController) ListDividendsOrders() {
66 dividendsOrderService := service.NewDividendsOrderService(nil) 65 dividendsOrderService := service.NewDividendsOrderService(nil)
67 listDividendsOrdersQuery := &query.ListDividendsOrdersQuery{} 66 listDividendsOrdersQuery := &query.ListDividendsOrdersQuery{}
68 - offset, _ := controller.GetInt("offset")  
69 - listDividendsOrdersQuery.Offset = offset  
70 - limit, _ := controller.GetInt("limit")  
71 - listDividendsOrdersQuery.Limit = limit 67 + pageSize, _ := controller.GetInt32("pageSize")
  68 + listDividendsOrdersQuery.PageSize = pageSize
  69 + pageNumber, _ := controller.GetInt32("pageNumber")
  70 + listDividendsOrdersQuery.PageNumber = pageNumber
72 data, err := dividendsOrderService.ListDividendsOrders(listDividendsOrdersQuery) 71 data, err := dividendsOrderService.ListDividendsOrders(listDividendsOrdersQuery)
73 controller.Response(data, err) 72 controller.Response(data, err)
74 } 73 }
1 package controllers 1 package controllers
2 2
3 import ( 3 import (
4 - "github.com/linmadan/egglib-go/web/beego"  
5 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/dividendsReturnedOrder/command" 4 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/dividendsReturnedOrder/command"
6 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/dividendsReturnedOrder/query" 5 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/dividendsReturnedOrder/query"
7 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/dividendsReturnedOrder/service" 6 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/dividendsReturnedOrder/service"
8 ) 7 )
9 8
10 type DividendsReturnedOrderController struct { 9 type DividendsReturnedOrderController struct {
11 - beego.BaseController 10 + BaseController
12 } 11 }
13 12
14 func (controller *DividendsReturnedOrderController) CreateDividendsReturnedOrder() { 13 func (controller *DividendsReturnedOrderController) CreateDividendsReturnedOrder() {
@@ -66,10 +65,10 @@ func (controller *DividendsReturnedOrderController) ImportDividendsReturnedOrder @@ -66,10 +65,10 @@ func (controller *DividendsReturnedOrderController) ImportDividendsReturnedOrder
66 func (controller *DividendsReturnedOrderController) ListDividendsReturnedOrder() { 65 func (controller *DividendsReturnedOrderController) ListDividendsReturnedOrder() {
67 dividendsReturnedOrderService := service.NewDividendsReturnedOrderService(nil) 66 dividendsReturnedOrderService := service.NewDividendsReturnedOrderService(nil)
68 listDividendsReturnedOrderQuery := &query.ListDividendsReturnedOrderQuery{} 67 listDividendsReturnedOrderQuery := &query.ListDividendsReturnedOrderQuery{}
69 - offset, _ := controller.GetInt("offset")  
70 - listDividendsReturnedOrderQuery.Offset = offset  
71 - limit, _ := controller.GetInt("limit")  
72 - listDividendsReturnedOrderQuery.Limit = limit 68 + pageSize, _ := controller.GetInt32("pageSize")
  69 + listDividendsReturnedOrderQuery.PageSize = pageSize
  70 + pageNumber, _ := controller.GetInt32("pageNumber")
  71 + listDividendsReturnedOrderQuery.PageNumber = pageNumber
73 data, err := dividendsReturnedOrderService.ListDividendsReturnedOrder(listDividendsReturnedOrderQuery) 72 data, err := dividendsReturnedOrderService.ListDividendsReturnedOrder(listDividendsReturnedOrderQuery)
74 controller.Response(data, err) 73 controller.Response(data, err)
75 } 74 }