12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- package youngee_talent_model
- import (
- "github.com/gogf/gf/util/gmeta"
- "youngmini_server/app/model"
- "github.com/gogf/gf/os/gtime"
- )
- type GetTalentIncomeReq struct {
- Type int `json:"type"` // 提现阶段,1-3分别表示可提现、已提现、提现中
- SearchInput string `json:"search_input"` // 模糊搜索内容
- }
- type TalentIncomeInfoAll struct {
- TalentIncomeInfos []*TalentIncomeInfo `json:"talentIncomeInfos"`
- TalentInfo *TalentInfo `json:"talentInfo"`
- }
- type TalentIncomeInfo struct {
- gmeta.Meta `orm:"table:younggee_talent_income"`
- Id int `orm:"id,primary" json:"id"` // 递增id
- TalentId string `orm:"talent_id" json:"talent_id"` // 达人id
- ProjectId string `orm:"project_id" json:"project_id"` // 项目id
- SelectionId string `orm:"selection_id" json:"selection_id"` // 带货id
- TaskId string `orm:"task_id" json:"task_id"` // 任务id
- SectaskId string `orm:"sectask_id" json:"sectask_id"` // 选品任务id
- BrandName string `orm:"brand_name" json:"brand_name"` // 品牌名称
- TaskName string `orm:"task_name" json:"task_name"` // 任务名称
- TeamId string `orm:"team_id" json:"team_id"` // young之团id
- Income float64 `orm:"income" json:"income"` // 收益金额
- IncomeType int `orm:"income_type" json:"income_type"` // 收益类型,1-4分别表示任务收益、开团收益、样品返现、悬赏收益
- WithdrawStatus int `orm:"withdraw_status" json:"withdraw_status"` // 提现状态,1-3分别表示可提现、提现中、已提现
- IncomeAt *gtime.Time `orm:"income_at" json:"income_at"` // 收益产生时间
- WithdrawAt *gtime.Time `orm:"withdraw_at" json:"withdraw_at"` // 提现时间
- PhotoUrl string `orm:"photo_url" json:"photo_url"` // 商品主图
- Type int `orm:"type" json:"type"` // 选品or项目,1:种草,2:带货 3.本地生活
- PlatformIconUrl string `json:"platform_icon_url"`
- }
- type TalentPointInfo struct {
- Point int `json:"point"` // 现有积分
- TalentPointRecord []*model.YounggeeTalentPointRecord `json:"talent_point_record"` // 达人积分收益记录
- }
- type WithdrawDetail struct {
- WithdrawId string `json:"withdraw_id"` // 提现订单ID
- TalentId string `json:"talent_id"` // 达人id
- WithdrawAmount string `json:"withdraw_amount"` // 提现金额
- AmountPayable string `json:"amount_payable"` // 应付金额
- PayPoint int `json:"pay_point"` // 抵扣积分
- IncomeIdList string `json:"income_id_list"` // 该提现订单包含的income_id列表
- ReceiveInfo string `json:"receive_info"` // 收款信息 (JSON格式)
- Status int `json:"status"` // 提现状态:1为提现中,2为已提现, 3为提现失败
- BankType int `json:"bank_type"` // 到账方式,1为支付宝,2为银行卡
- SubmitAt string `json:"submit_at"` // 申请提交时间 (字符串格式,方便前端处理)
- WithdrawAt string `json:"withdraw_at"` // 提现时间 (字符串格式)
- TaxAmount float32 `json:"tax_amount"` // 扣税
- RejectReason string `json:"reject_reason"` // 拒绝理由
- TalentIncomeInfo []*TalentIncomeInfo `json:"talent_income_info"`
- }
|