作者 陈志颖

feat:修改附加文件大小类型

... ... @@ -9,5 +9,5 @@ type Attachment struct {
// 附件地址
Url string `json:"url"`
// 附件文件大小,保存KB单位
FileSize int64 `json:"fileSize,string"`
FileSize int64 `json:"fileSize"`
}
... ...
... ... @@ -15,7 +15,9 @@ type DividendsIncentivesRule struct {
// 分红规则激励百分点
DividendsIncentivesPercentage float64 `json:"dividendsIncentivesPercentage"`
// 分红规则激励阶段,阶段返回时需要转换为中文数字
DividendsIncentivesStage int64 `json:"dividendsIncentivesStage,string"`
DividendsIncentivesStage int64 `json:"dividendsIncentivesStage"`
// 分红激励规则阶段中文表示
DividendsIncentivesStageCN string `json:"dividendsIncentivesStageCN"`
// 分红规则激励阶段结束
DividendsIncentivesStageEnd time.Time `json:"dividendsIncentivesStageEnd"`
// 分红规则激励阶段开始
... ... @@ -73,20 +75,10 @@ func (dividendsIncentivesRule *DividendsIncentivesRule) Update(data map[string]i
if dividendsIncentivesStageStart, ok := data["dividendsIncentivesStageStart"]; ok {
dividendsIncentivesRule.DividendsIncentivesStageStart = dividendsIncentivesStageStart.(time.Time)
}
if orgId, ok := data["orgId"]; ok {
dividendsIncentivesRule.Org.OrgId = orgId.(int64)
}
if orgName, ok := data["orgName"]; ok {
dividendsIncentivesRule.Org.OrgName = orgName.(string)
}
if companyId, ok := data["companyId"]; ok {
dividendsIncentivesRule.Org.Company.CompanyId = companyId.(int64)
}
if companyLogo, ok := data["companyLogo"]; ok {
dividendsIncentivesRule.Org.Company.CompanyLogo = companyLogo.(string)
}
if companyName, ok := data["companyName"]; ok {
dividendsIncentivesRule.Org.Company.CompanyName = companyName.(string)
}
return nil
}
// NumberToCNNumber 数字转中文数字
func (dividendsIncentivesRule *DividendsIncentivesRule) NumberToCNNumber() (string, error) {
return "", nil
}
... ...
... ... @@ -11,7 +11,9 @@ type MoneyIncentivesRule struct {
// 激励金额
MoneyIncentivesAmount float64 `json:"moneyIncentivesAmount"`
// 金额激励阶段,阶段返回时需要转换为中文数字
MoneyIncentivesStage int64 `json:"moneyIncentivesStage,string"`
MoneyIncentivesStage int64 `json:"moneyIncentivesStage"`
// 金额激励规则阶段中文表示
MoneyIncentivesStageCN string `json:"moneyIncentivesStageCN"`
// 金额激励阶段有效期结束
MoneyIncentivesStageEnd time.Time `json:"moneyIncentivesStageEnd"`
// 金额激励阶段有效期开始
... ... @@ -78,20 +80,10 @@ func (moneyIncentivesRule *MoneyIncentivesRule) Update(data map[string]interface
if salesmanPercentage, ok := data["salesmanPercentage"]; ok {
moneyIncentivesRule.SalesmanPercentage = salesmanPercentage.(float64)
}
if orgId, ok := data["orgId"]; ok {
moneyIncentivesRule.Org.OrgId = orgId.(int64)
}
if orgName, ok := data["orgName"]; ok {
moneyIncentivesRule.Org.OrgName = orgName.(string)
}
if companyId, ok := data["companyId"]; ok {
moneyIncentivesRule.Org.Company.CompanyId = companyId.(int64)
}
if companyLogo, ok := data["companyLogo"]; ok {
moneyIncentivesRule.Org.Company.CompanyLogo = companyLogo.(string)
}
if companyName, ok := data["companyName"]; ok {
moneyIncentivesRule.Org.Company.CompanyName = companyName.(string)
}
return nil
}
// NumberToCNNumber 数字转中文数字
func (moneyIncentivesRule *MoneyIncentivesRule) NumberToCNNumber() (string, error) {
return "", nil
}
... ...