正在显示
3 个修改的文件
包含
28 行增加
和
5 行删除
| @@ -37,7 +37,7 @@ type CreditAccountItem struct { | @@ -37,7 +37,7 @@ type CreditAccountItem struct { | ||
| 37 | UpdatedAt int64 `json:"updatedAt"` // 更新时间 | 37 | UpdatedAt int64 `json:"updatedAt"` // 更新时间 |
| 38 | AccountDetail []struct { | 38 | AccountDetail []struct { |
| 39 | DividendsEstimateOrderNumber string `json:"dividendsEstimateOrderNumber"` | 39 | DividendsEstimateOrderNumber string `json:"dividendsEstimateOrderNumber"` |
| 40 | - DividendsType string `json:"dividendsType"` | 40 | + DividendsType int `json:"dividendsType"` |
| 41 | DividendsAmount float64 `json:"dividendsAmount"` | 41 | DividendsAmount float64 `json:"dividendsAmount"` |
| 42 | } `json:"accountDetail"` //结算明细 | 42 | } `json:"accountDetail"` //结算明细 |
| 43 | } | 43 | } |
| @@ -27,9 +27,20 @@ type CreditAccountItem struct { | @@ -27,9 +27,20 @@ type CreditAccountItem struct { | ||
| 27 | UpdatedAt int64 `json:"updatedAt"` // 更新时间 | 27 | UpdatedAt int64 `json:"updatedAt"` // 更新时间 |
| 28 | AccountDetail []struct { | 28 | AccountDetail []struct { |
| 29 | DividendsEstimateOrderNumber string `json:"dividendsEstimateOrderNumber"` | 29 | DividendsEstimateOrderNumber string `json:"dividendsEstimateOrderNumber"` |
| 30 | - DividendsType string `json:"dividendsType"` | 30 | + DividendsType int `json:"dividendsType"` |
| 31 | DividendsAmount float64 `json:"dividendsAmount"` | 31 | DividendsAmount float64 `json:"dividendsAmount"` |
| 32 | } `json:"accountDetail"` //结算明细 | 32 | } `json:"accountDetail"` //结算明细 |
| 33 | + Operator struct { | ||
| 34 | + UserId int `json:"userId,string,"` // 用户ID, | ||
| 35 | + UserBaseId int `json:"userBaseId,string,"` // 用户基本id | ||
| 36 | + UserName string `json:"userName"` // 用户姓名 | ||
| 37 | + UserPhone string `json:"userPhone"` // 用户手机号 | ||
| 38 | + UserInfo struct { | ||
| 39 | + UserName string `json:"userName"` // 共创人员姓名 | ||
| 40 | + UserPhone string `json:"userPhone"` // 用户手机号 | ||
| 41 | + UserAccount string `json:"userAccount"` // 用户账号, | ||
| 42 | + } `json:"userInfo"` | ||
| 43 | + } `json:"operator"` | ||
| 33 | } | 44 | } |
| 34 | 45 | ||
| 35 | func ToCreditAccountItem(param *allied_creation_cooperation.CreditAccount) *CreditAccountItem { | 46 | func ToCreditAccountItem(param *allied_creation_cooperation.CreditAccount) *CreditAccountItem { |
| @@ -53,5 +64,11 @@ func ToCreditAccountItem(param *allied_creation_cooperation.CreditAccount) *Cred | @@ -53,5 +64,11 @@ func ToCreditAccountItem(param *allied_creation_cooperation.CreditAccount) *Cred | ||
| 53 | data.Participator.UserName = param.Participator.UserName | 64 | data.Participator.UserName = param.Participator.UserName |
| 54 | data.Participator.UserPhone = param.Participator.UserPhone | 65 | data.Participator.UserPhone = param.Participator.UserPhone |
| 55 | data.Participator.UserType = param.Participator.UserType | 66 | data.Participator.UserType = param.Participator.UserType |
| 67 | + data.Operator.UserId = param.Operator.UserId | ||
| 68 | + data.Operator.UserBaseId = param.Operator.UserBaseId | ||
| 69 | + data.Operator.UserName = param.Operator.UserName | ||
| 70 | + data.Operator.UserPhone = param.Operator.UserPhone | ||
| 71 | + data.Operator.UserInfo.UserName = param.Operator.UserName | ||
| 72 | + data.Operator.UserInfo.UserPhone = param.Operator.UserPhone | ||
| 56 | return &data | 73 | return &data |
| 57 | } | 74 | } |
| @@ -18,14 +18,20 @@ type CreditAccount struct { | @@ -18,14 +18,20 @@ type CreditAccount struct { | ||
| 18 | Participator struct { | 18 | Participator struct { |
| 19 | UserId int `json:"userId,string,"` // 用户ID, | 19 | UserId int `json:"userId,string,"` // 用户ID, |
| 20 | UserBaseId int `json:"userBaseId,string,"` // 用户基本id | 20 | UserBaseId int `json:"userBaseId,string,"` // 用户基本id |
| 21 | - // Org domain.Org `json:"org"` // 用户所属的组织机构 | ||
| 22 | - // Department domain.Department `json:"department"` // 用户所属的部门 | ||
| 23 | UserInfo domain.UserInfo `json:"userInfo"` // | 21 | UserInfo domain.UserInfo `json:"userInfo"` // |
| 24 | UserName string `json:"userName"` // 用户姓名 | 22 | UserName string `json:"userName"` // 用户姓名 |
| 25 | UserPhone string `json:"userPhone"` // 用户手机号 | 23 | UserPhone string `json:"userPhone"` // 用户手机号 |
| 26 | UserType int `json:"userType"` // 用户类型,1员工,2共创用户,3公开 | 24 | UserType int `json:"userType"` // 用户类型,1员工,2共创用户,3公开 |
| 27 | Status int `json:"status"` // 状态 | 25 | Status int `json:"status"` // 状态 |
| 28 | } `json:"participator"` // 参与人 | 26 | } `json:"participator"` // 参与人 |
| 27 | + // 操作人 | ||
| 28 | + Operator struct { | ||
| 29 | + UserId int `json:"userId,string,"` // 用户ID, | ||
| 30 | + UserBaseId int `json:"userBaseId,string,"` // 用户基本id | ||
| 31 | + UserName string `json:"userName"` // 用户姓名 | ||
| 32 | + UserPhone string `json:"userPhone"` // 用户手机号 | ||
| 33 | + UserInfo domain.UserInfo `json:"userInfo"` // | ||
| 34 | + } `json:"operator"` | ||
| 29 | ParticipateType string `json:"participateType"` // 参与类型 | 35 | ParticipateType string `json:"participateType"` // 参与类型 |
| 30 | PaymentDocumentAttachment domain.Attachment `json:"paymentDocumentAttachment"` // 支付凭证附件 | 36 | PaymentDocumentAttachment domain.Attachment `json:"paymentDocumentAttachment"` // 支付凭证附件 |
| 31 | Org domain.Org `json:"org"` // 数据所属组织机构 | 37 | Org domain.Org `json:"org"` // 数据所属组织机构 |
| @@ -34,7 +40,7 @@ type CreditAccount struct { | @@ -34,7 +40,7 @@ type CreditAccount struct { | ||
| 34 | UpdatedAt time.Time `json:"updatedAt"` // 更新时间 | 40 | UpdatedAt time.Time `json:"updatedAt"` // 更新时间 |
| 35 | AccountDetail []struct { | 41 | AccountDetail []struct { |
| 36 | DividendsEstimateOrderNumber string `json:"dividendsEstimateOrderNumber"` | 42 | DividendsEstimateOrderNumber string `json:"dividendsEstimateOrderNumber"` |
| 37 | - DividendsType string `json:"dividendsType"` | 43 | + DividendsType int `json:"dividendsType"` |
| 38 | DividendsAmount float64 `json:"dividendsAmount"` | 44 | DividendsAmount float64 `json:"dividendsAmount"` |
| 39 | } `json:"accountDetail"` //结算明细 | 45 | } `json:"accountDetail"` //结算明细 |
| 40 | } | 46 | } |
-
请 注册 或 登录 后发表评论