fusenapi/model/gmodel/fs_card_group_gen.go

23 lines
708 B
Go
Raw Normal View History

2023-06-19 01:53:35 +00:00
package gmodel
2023-06-16 11:04:13 +00:00
import (
"gorm.io/gorm"
)
// fs_card_group 卡号分组表
type FsCardGroup struct {
2023-06-19 10:27:31 +00:00
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` // id
2023-08-23 07:08:45 +00:00
GroupName *string `gorm:"default:'';" json:"group_name"` //
PreNo *string `gorm:"default:'';" json:"pre_no"` //
2023-06-19 10:27:31 +00:00
Num *int64 `gorm:"default:0;" json:"num"` // 生成数量
2023-08-23 07:08:45 +00:00
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 创建时间
2023-06-16 11:04:13 +00:00
}
type FsCardGroupModel struct {
db *gorm.DB
name string
}
2023-06-16 11:04:13 +00:00
func NewFsCardGroupModel(db *gorm.DB) *FsCardGroupModel {
return &FsCardGroupModel{db: db, name: "fs_card_group"}
}