refactor: reorganize modules and add Linux build tooling

This commit is contained in:
2026-08-09 12:41:08 +08:00
parent 86024fa81d
commit 5cc5fd92ed
1461 changed files with 4054 additions and 4724 deletions

View File

@@ -0,0 +1,30 @@
// Models generated by mesh dev cli,@Author: David Yan(david.yan@qq.com).
package models
import (
"git.apinb.com/bsm-sdk/core/types"
"gorm.io/gorm"
)
/*
* OrderCart
* Comment: 订单详情
* Version: 10
* Created: 2022-04-11 23:27:50 , Updated:0001-01-01 00:00:00
*/
type OrderCart struct {
gorm.Model
types.Std_Identity
types.Std_Passport
CartIdentity string `gorm:"column:cart_identity;type:varchar(36);index;not null';" json:"cart_identity"`
ProductID int64 `gorm:"column:product_id;default:0;" json:"product_id"`
ProductIdentity string `gorm:"column:product_identity;type:varchar(36);Index;" json:"product_identity"` // 产品唯一标识24位NanoID,36位为UUID
ProductArgs string `gorm:"column:product_args;type:text;default:'';" json:"product_args"` // 产品参数
Number int32 `gorm:"column:number;default:0;" json:"number"` // 订单产品数量
SpecID int64 `gorm:"column:spec_id;" json:"spec_id"` // 规格编号
}
// TableName .
func (table *OrderCart) TableName() string {
return "order_cart" //对应数据库表名
}