bobocoin.go 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. package talent_model
  2. import (
  3. "github.com/gogf/gf/os/gtime"
  4. "youngmini_server/app/model"
  5. )
  6. type BoBoCoinOrderInfo struct {
  7. OrderId uint64 `orm:"order_id" json:"orderId"`
  8. TaskName string `orm:"task_name" json:"taskName"` // 任务名称(冗余)
  9. ProductName string `orm:"product_name" json:"productName"` // 商品名称(冗余)
  10. ProductMainImg string `orm:"product_main_img" json:"productMainImg"` // 商品主图url(冗余)
  11. SettleAmount int64 `orm:"settle_amount" json:"settleAmount"` // 待结算金额
  12. TalentPlatformInfoSnap string `orm:"talent_platform_info_snap" json:"talentPlatformInfoSnap"` // 达人平台信息快照
  13. CompleteStatus int `orm:"complete_status" json:"completeStatus"` // 结束方式 1未结束 2正常结束 3反选失败 4达人取消
  14. CreateDate *gtime.Time `orm:"create_date" json:"createDate"` // 创建时间
  15. CompleteDate *gtime.Time `orm:"complete_date" json:"completeDate"` // 结束时间
  16. }
  17. type BoBoCoinOrderSettleStateResult struct {
  18. SettleUpOrders []*BoBoCoinOrderInfo // 已结算订单列表
  19. UnsettledOrders []*BoBoCoinOrderInfo // 未结算订单列表
  20. }
  21. // BoBoCoinDetailAccount 卜卜币流水账
  22. type BoBoCoinDetailAccount struct {
  23. WaitSettle int64 `json:"wait_settle"` // 待结算
  24. SettleUp int64 `json:"settle_up"` // 已结算
  25. CanWithdraw int64 `json:"can_withdraw"` // 可提现
  26. HasWithDraw int64 `json:"has_with_draw"` // 已提现
  27. WaitPay int64 `json:"wait_pay"` // 待打款
  28. IncomeList []*model.BobocoinIncomeRecord `json:"income_list"` // 收入列表
  29. DrawMoneyList []*model.BobocoinWithdrawalRecord `json:"draw_money_list"` // 提现列表
  30. DeductList []*model.BobocoinDeductRecord `json:"de_duct_list"` // 扣费列表
  31. }
  32. type BoBoCoinAliAccountInfo struct {
  33. AliName string `orm:"ali_name" json:"aliName" v:"required#must input aliName"`
  34. AliAccount string `orm:"ali_account" json:"aliAccount" v:"required#must input aliAccount"`
  35. }
  36. // BoBoCoinWithdrawInfo 进入提现页面是返回的数据格式
  37. type BoBoCoinWithdrawInfo struct {
  38. BoBoCoinValue int64 `json:"bo_bo_coin_value"`
  39. AliName string `json:"ali_name"`
  40. AliAccount string `json:"ali_account"`
  41. }
  42. type BoBoCoinWithdrawalReq struct {
  43. WithdrawalAmount int64 `json:"withdrawal_amount" v:"required|integer#must input withdraw amount|type of withdraw amount is int"`
  44. }