作者 陈志颖

fix:承接人值对象json tag修复

... ... @@ -16,24 +16,24 @@ type CreateDividendsIncentivesRulesCommand struct {
SalesmanPercentage float64 `cname:"业务员抽成" json:"salesmanPercentage"`
DividendsIncentivesPercentage float64 `cname:"分红规则激励百分点" json:"dividendsIncentivesPercentage"`
DividendsIncentivesStage int32 `cname:"分红激励阶段" json:"dividendsIncentivesStage"`
DividendsIncentivesStageEnd time.Time `cname:"" json:"dividendsIncentivesStageEnd"`
DividendsIncentivesStageStart time.Time `cname:"" json:"dividendsIncentivesStageStart"`
DividendsIncentivesStageEnd time.Time `cname:"业绩分红阶段结束时间" json:"dividendsIncentivesStageEnd"`
DividendsIncentivesStageStart time.Time `cname:"业绩分红阶段开始时间" json:"dividendsIncentivesStageStart"`
}
type CreateMoneyIncentivesRulesCommand struct {
MoneyIncentivesRuleId string `cname:"" json:"moneyIncentivesRuleId,string"`
CooperationContractNumber string `cname:"" json:"cooperationContractNumber"`
MoneyIncentivesAmount float64 `cname:"" json:"moneyIncentivesAmount"`
MoneyIncentivesStage int32 `cname:"" json:"moneyIncentivesStage"`
MoneyIncentivesRuleId string `cname:"金额激励规则ID" json:"moneyIncentivesRuleId"`
CooperationContractNumber string `cname:"共创合约编号" json:"cooperationContractNumber"`
MoneyIncentivesAmount float64 `cname:"激励金额" json:"moneyIncentivesAmount"`
MoneyIncentivesStage int32 `cname:"金额激励阶段" json:"moneyIncentivesStage"`
MoneyIncentivesStageEnd time.Time `cname:"" json:"moneyIncentivesStageEnd"`
MoneyIncentivesStageStart time.Time `cname:"" json:"moneyIncentivesStageStart"`
MoneyIncentivesStageStart time.Time `cname:"金额激励时间" json:"moneyIncentivesStageStart"`
MoneyIncentivesTime time.Time `cname:"" json:"moneyIncentivesTime"`
ReferrerPercentage float64 `cname:"" json:"referrerPercentage"`
SalesmanPercentage float64 `cname:"" json:"salesmanPercentage"`
ReferrerPercentage float64 `cname:"推荐人抽成" json:"referrerPercentage"`
SalesmanPercentage float64 `cname:"业务员抽成" json:"salesmanPercentage"`
}
type CreateUndertakersCommand struct {
UndertakerId string `cname:"承接人ID" json:"relevantId"`
UndertakerId string `cname:"承接人ID" json:"undertakerId"`
UserId string `cname:"承接人UID" json:"userId"`
ContractAttachment []struct {
FileType string `cname:"文件类型" json:"fileType"`
... ... @@ -73,13 +73,13 @@ type CreateCooperationContractCommand struct {
// 相关人列表
RelevantIds []string `cname:"相关人列表" json:"relevantIds,omitempty"`
// 公司ID,通过集成REST上下文获取
CompanyId int64 `cname:"公司ID" json:"companyId,string" valid:"Required"`
CompanyId int64 `cname:"公司ID" json:"companyId" valid:"Required"`
// 组织机构ID
OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
OrgId int64 `cname:"组织机构ID" json:"orgId" valid:"Required"`
// 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
UserId int64 `cname:"用户ID" json:"userId,string" valid:"Required"`
UserId int64 `cname:"用户ID" json:"userId" valid:"Required"`
// 用户基础数据id
UserBaseId int64 `cname:"用户基础数据ID" json:"userBaseId,string" valid:"Required"`
UserBaseId int64 `cname:"用户基础数据ID" json:"userBaseId" valid:"Required"`
}
func (createCooperationContractCommand *CreateCooperationContractCommand) Valid(validation *validation.Validation) {
... ...
... ... @@ -3,7 +3,7 @@ package domain
// Undertaker 共创合约承接方值对象
type Undertaker struct {
// 承接人id
UndertakerId int64 `json:"relevantId,string"`
UndertakerId int64 `json:"undertakerId,string"`
// 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
UserId int64 `json:"userId,string"`
// 用户基本id
... ...