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
|
|
|
|
GroupName *string `gorm:"default:'';" json:"group_name"` // 分组名字
|
|
|
|
PreNo *string `gorm:"default:'';" json:"pre_no"` // 规则前几位数
|
|
|
|
Num *int64 `gorm:"default:0;" json:"num"` // 生成数量
|
|
|
|
Ctime *int64 `gorm:"default:0;" json:"ctime"` //
|
2023-06-16 11:04:13 +00:00
|
|
|
}
|
2023-07-20 02:13:18 +00:00
|
|
|
type FsCardGroupModel struct {
|
|
|
|
db *gorm.DB
|
|
|
|
name string
|
|
|
|
}
|
2023-06-16 11:04:13 +00:00
|
|
|
|
2023-07-20 02:13:18 +00:00
|
|
|
func NewFsCardGroupModel(db *gorm.DB) *FsCardGroupModel {
|
|
|
|
return &FsCardGroupModel{db: db, name: "fs_card_group"}
|
|
|
|
}
|