feat: import services and standardize Go 1.26.5

This commit is contained in:
2026-08-09 10:43:45 +08:00
parent 689c74b28f
commit 86024fa81d
1456 changed files with 220765 additions and 2 deletions

View File

@@ -0,0 +1,28 @@
package models
import (
"git.apinb.com/bsm-sdk/core/database"
"git.apinb.com/bsm-sdk/core/types"
"gorm.io/gorm"
)
// Store Freight Deny
type MallFreightDeny struct {
gorm.Model
types.Std_Identity
types.Std_Status
OwnerIdentity string `gorm:"column:owner_identity;type:varchar(36);Index;"` // 机构唯一标识24位NanoID,36位为UUID
CreatedIdentity string `gorm:"column:created_identity;type:varchar(36);Index;"` // 创建者一标识24位NanoID,36位为UUID
Title string `gorm:"column:title;type:varchar(255);not null;" json:"title"` // 名称
Region string `gorm:"column:region;type:text;" json:"region"` // 限售区域json字符串
RegionId string `gorm:"column:region_id;type:varchar(255);" json:"region_id"` // 限售区域id,用逗号隔开
}
func init() {
database.AppendMigrate(&MallFreightDeny{})
}
// TableName .
func (table *MallFreightDeny) TableName() string {
return "mall_freight_deny" //对应数据库表名
}