info address default
This commit is contained in:
parent
fa011a1670
commit
32b8ceeb96
|
@ -22,7 +22,6 @@ type FsAddress struct {
|
|||
Ctime *time.Time `gorm:"default:'0000-00-00 00:00:00';" json:"ctime"` // 创建时间
|
||||
Utime *time.Time `gorm:"index;default:'0000-00-00 00:00:00';" json:"utime"` // 更新时间
|
||||
Ltime *time.Time `gorm:"default:'0000-00-00 00:00:00';" json:"ltime"` // 上次被使用的时间
|
||||
IsDefault *int64 `gorm:"default:0;" json:"is_default"` // 1默认值,0非默认值
|
||||
}
|
||||
type FsAddressModel struct {
|
||||
db *gorm.DB
|
||||
|
|
|
@ -37,7 +37,6 @@ func (a *FsAddressModel) CreateOne(ctx context.Context, address *FsAddress) (res
|
|||
Country: address.Country,
|
||||
ZipCode: address.ZipCode,
|
||||
Status: address.Status,
|
||||
IsDefault: address.IsDefault,
|
||||
Ctime: &now,
|
||||
Utime: &now,
|
||||
Ltime: &now,
|
||||
|
|
|
@ -32,6 +32,7 @@ type FsAdminMenu struct {
|
|||
UpdateUid *int64 `gorm:"default:0;" json:"update_uid"` // 更新人
|
||||
DeleteUid *int64 `gorm:"default:0;" json:"delete_uid"` // 删除人
|
||||
IsDel *int64 `gorm:"default:0;" json:"is_del"` // 是否删除:1=是 0=否
|
||||
ApiAuth *[]byte `gorm:"default:'';" json:"api_auth"` //
|
||||
}
|
||||
type FsAdminMenuModel struct {
|
||||
db *gorm.DB
|
||||
|
|
|
@ -23,7 +23,6 @@ type FsAdminRole struct {
|
|||
DeleteUid *int64 `gorm:"default:0;" json:"delete_uid"` // 删除人
|
||||
IsDel *int64 `gorm:"default:0;" json:"is_del"` // 是否删除:1=是 0=否
|
||||
MenuAuth *[]byte `gorm:"default:'';" json:"menu_auth"` //
|
||||
ApiAuth *[]byte `gorm:"default:'';" json:"api_auth"` //
|
||||
}
|
||||
type FsAdminRoleModel struct {
|
||||
db *gorm.DB
|
||||
|
|
Loading…
Reference in New Issue
Block a user