feat: add Go backend
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
// =================================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package entity
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/encoding/gjson"
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
)
|
||||
|
||||
// TradeOrder is the golang structure for table trade_order.
|
||||
type TradeOrder struct {
|
||||
Id uint64 `json:"id" orm:"id" description:"主键"`
|
||||
TenantId uint64 `json:"tenantId" orm:"tenant_id" description:"租户ID"`
|
||||
OrderNo string `json:"orderNo" orm:"order_no" description:"订单号"`
|
||||
MemberId uint64 `json:"memberId" orm:"member_id" description:"会员ID"`
|
||||
TaskId uint64 `json:"taskId" orm:"task_id" description:"任务ID"`
|
||||
ProductId uint64 `json:"productId" orm:"product_id" description:"商品ID"`
|
||||
ProductName string `json:"productName" orm:"product_name" description:"商品名称快照"`
|
||||
OrderType int `json:"orderType" orm:"order_type" description:"订单类型"`
|
||||
Quantity uint `json:"quantity" orm:"quantity" description:"数量"`
|
||||
UnitPriceAmount int64 `json:"unitPriceAmount" orm:"unit_price_amount" description:"单价(分)"`
|
||||
TotalAmount int64 `json:"totalAmount" orm:"total_amount" description:"订单金额(分)"`
|
||||
CommissionAmount int64 `json:"commissionAmount" orm:"commission_amount" description:"佣金(分)"`
|
||||
Currency string `json:"currency" orm:"currency" description:"币种"`
|
||||
MemberLevelId uint64 `json:"memberLevelId" orm:"member_level_id" description:"下单等级ID"`
|
||||
RuleSnapshot *gjson.Json `json:"ruleSnapshot" orm:"rule_snapshot" description:"规则快照"`
|
||||
Message string `json:"message" orm:"message" description:"订单消息"`
|
||||
OrderStatus int `json:"orderStatus" orm:"order_status" description:"订单状态"`
|
||||
FreezeStatus int `json:"freezeStatus" orm:"freeze_status" description:"冻结状态"`
|
||||
ApprovalRequestId uint64 `json:"approvalRequestId" orm:"approval_request_id" description:"人工处理审批ID"`
|
||||
MatchedAt *gtime.Time `json:"matchedAt" orm:"matched_at" description:"匹配时间"`
|
||||
CompletedAt *gtime.Time `json:"completedAt" orm:"completed_at" description:"完成时间"`
|
||||
UnfrozenAt *gtime.Time `json:"unfrozenAt" orm:"unfrozen_at" description:"解冻时间"`
|
||||
CreatedBy uint64 `json:"createdBy" orm:"created_by" description:"创建者"`
|
||||
UpdatedBy uint64 `json:"updatedBy" orm:"updated_by" description:"更新者"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"下单时间"`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"`
|
||||
}
|
||||
Reference in New Issue
Block a user