53 lines
3.5 KiB
Go
53 lines
3.5 KiB
Go
package model
|
||
|
||
import (
|
||
"github.com/gogf/gf/v2/frame/g"
|
||
"github.com/gogf/gf/v2/os/gtime"
|
||
)
|
||
|
||
type GetUserClaimListIn struct {
|
||
UserId int64
|
||
UserTaskId int64
|
||
TaskId string
|
||
NetbarAccount string
|
||
StoreId int64
|
||
}
|
||
|
||
type GetUserClaimListOut struct {
|
||
List []UserTaskRewards
|
||
Total int
|
||
}
|
||
|
||
type UserTaskRewards struct {
|
||
Id int64 `json:"id" orm:"id" description:"用户任务奖励记录唯一标识符"` // 用户任务奖励记录唯一标识符
|
||
UserTaskId int64 `json:"userTaskId" orm:"user_task_id" description:"关联用户任务记录ID"` // 关联用户任务记录ID
|
||
RewardId int64 `json:"rewardId" orm:"reward_id" description:"奖励ID"` // 奖励ID
|
||
RewardName string `json:"rewardName" orm:"reward_name" description:"奖励名称冗余字段"` // 奖励名称冗余字段
|
||
Status int `json:"status" orm:"status" description:"状态:1=待用户完成任务,2=待领取,3=已领取, 待兑换,4=已过期,5=发放失败, 6=结束"` // 状态:1=待用户完成任务,2=待领取,3=已领取, 待兑换,4=已过期,5=发放失败, 6=结束
|
||
Remark string `json:"remark" orm:"remark" description:"备注或失败原因"` // 备注或失败原因
|
||
ExternalOrderId string `json:"externalOrderId" orm:"external_order_id" description:"第三方发放平台的订单ID"` // 第三方发放平台的订单ID
|
||
InnerOrderId string `json:"innerOrderId" orm:"inner_order_id" description:"系统内部订单ID"` // 系统内部订单ID
|
||
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"` // 创建时间
|
||
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"` // 更新时间
|
||
DeletedAt *gtime.Time `json:"deletedAt" orm:"deleted_at" description:"软删除时间"` // 软删除时间
|
||
ExpiredAt *gtime.Time `json:"expiredAt" orm:"expired_at" description:"奖励过期时间"` // 奖励过期时间
|
||
IssueQuantity int `json:"issueQuantity" orm:"issue_quantity" description:""` //
|
||
Source int64 `json:"source" orm:"source" description:"来源 1:系统 2:门店"` // 来源 1:系统 2:门店
|
||
RewardTypeId int64 `json:"rewardTypeId" orm:"reward_type_id" description:"奖励类型 id"`
|
||
ImgUrl string `json:"imgUrl" orm:"image_url"`
|
||
}
|
||
|
||
type UserClaimReward struct {
|
||
g.Meta `orm:"table:user_task_rewards"`
|
||
RewardId int64 `json:"rewardId" orm:"reward_id"`
|
||
Status int64 `json:"status" orm:"reward_status"`
|
||
RewardName string `json:"rewardName" orm:"reward_name"`
|
||
SimpleReward SimpleReward `json:"reward" orm:"with:id=reward_id"`
|
||
}
|
||
type NetfeeCallbackIn struct {
|
||
OrderId string
|
||
}
|
||
type NetfeeCallbackOut struct {
|
||
Success bool
|
||
}
|