feat:完善项目信息
This commit is contained in:
@ -236,7 +236,7 @@ func (c *Identity) Switch(identity int) error {
|
||||
}
|
||||
c.IdentityUID = mUserIdentity.UUID
|
||||
c.SelectIdentity = identity
|
||||
service.Publish(config2.EventForAccountLoginProduce, config2.RedisKeyForAccount, c.UIDToString(), c.Enterprise)
|
||||
service.Publish(config2.EventForAccountLoginProduce, config2.RedisKeyForAccountEnterprise, c.UIDToString(), c.Enterprise)
|
||||
return nil
|
||||
}
|
||||
return errors.New("操作错误,无效的身份信息")
|
||||
|
@ -17,13 +17,13 @@ type Withdrawal struct {
|
||||
type WithdrawalHandle func(session *session.Enterprise) *Withdrawal
|
||||
|
||||
type (
|
||||
// WithdrawalBasic 基本信息
|
||||
WithdrawalBasic struct {
|
||||
// WithdrawalInfo 基本信息
|
||||
WithdrawalInfo struct {
|
||||
ID string `json:"id"`
|
||||
*model.UserWithdrawalInfo
|
||||
}
|
||||
// WithdrawalInfo 提现数据信息
|
||||
WithdrawalInfo struct {
|
||||
// WithdrawalPageInfo 提现数据信息
|
||||
WithdrawalPageInfo struct {
|
||||
controller.ReturnPages
|
||||
TotalAmount float64 `json:"total_amount"`
|
||||
TotalActualAmount float64 `json:"total_actual_amount"`
|
||||
@ -36,10 +36,10 @@ type (
|
||||
)
|
||||
|
||||
// Instance 数据信息
|
||||
func (c *Withdrawal) Instance(status int, createdAt string, page, pageSize int) (*WithdrawalInfo, error) {
|
||||
func (c *Withdrawal) Instance(status int, createdAt string, page, pageSize int) (*WithdrawalPageInfo, error) {
|
||||
mUserWithdrawal := model.NewUserWithdrawal()
|
||||
|
||||
out := new(WithdrawalInfo)
|
||||
out := new(WithdrawalPageInfo)
|
||||
|
||||
where := []*model2.ModelWhere{model2.NewWhere("w.uid", c.UID), model2.NewWhere("w.status", status)}
|
||||
|
||||
@ -51,10 +51,10 @@ func (c *Withdrawal) Instance(status int, createdAt string, page, pageSize int)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
list := make([]*WithdrawalBasic, 0)
|
||||
list := make([]*WithdrawalInfo, 0)
|
||||
|
||||
for _, v := range ret {
|
||||
list = append(list, &WithdrawalBasic{ID: v.GetEncodeID(), UserWithdrawalInfo: v})
|
||||
list = append(list, &WithdrawalInfo{ID: v.GetEncodeID(), UserWithdrawalInfo: v})
|
||||
}
|
||||
out.Data = list
|
||||
|
||||
|
Reference in New Issue
Block a user