feat: add Go backend
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
// =================================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package entity
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
)
|
||||
|
||||
// Product is the golang structure for table product.
|
||||
type Product struct {
|
||||
Id uint64 `json:"id" orm:"id" description:"主键"`
|
||||
TenantId uint64 `json:"tenantId" orm:"tenant_id" description:"租户ID"`
|
||||
ProductNo string `json:"productNo" orm:"product_no" description:"商品编号"`
|
||||
CategoryId uint64 `json:"categoryId" orm:"category_id" description:"分类ID"`
|
||||
ProductType int `json:"productType" orm:"product_type" description:"商品类型"`
|
||||
PaymentType string `json:"paymentType" orm:"payment_type" description:"支付方式"`
|
||||
Name string `json:"name" orm:"name" description:"商品名称"`
|
||||
ShopName string `json:"shopName" orm:"shop_name" description:"店铺名称"`
|
||||
PriceAmount int64 `json:"priceAmount" orm:"price_amount" description:"单价(分)"`
|
||||
Currency string `json:"currency" orm:"currency" description:"币种"`
|
||||
CoverAttachmentId uint64 `json:"coverAttachmentId" orm:"cover_attachment_id" description:"封面附件ID"`
|
||||
CoverUrl string `json:"coverUrl" orm:"cover_url" description:"封面URL"`
|
||||
DetailHtml string `json:"detailHtml" orm:"detail_html" description:"商品详情"`
|
||||
IsRecommended int `json:"isRecommended" orm:"is_recommended" description:"是否推荐"`
|
||||
PublishStatus int `json:"publishStatus" orm:"publish_status" description:"发布状态"`
|
||||
StartAt *gtime.Time `json:"startAt" orm:"start_at" description:"展示开始时间"`
|
||||
EndAt *gtime.Time `json:"endAt" orm:"end_at" description:"展示结束时间"`
|
||||
Sort int `json:"sort" orm:"sort" description:"排序"`
|
||||
Version uint `json:"version" orm:"version" description:"乐观锁"`
|
||||
Remark string `json:"remark" orm:"remark" description:"备注"`
|
||||
CreatedBy uint64 `json:"createdBy" orm:"created_by" description:"创建者"`
|
||||
UpdatedBy uint64 `json:"updatedBy" orm:"updated_by" description:"更新者"`
|
||||
DeletedBy uint64 `json:"deletedBy" orm:"deleted_by" description:"删除者"`
|
||||
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:"删除时间"`
|
||||
}
|
||||
Reference in New Issue
Block a user