Files
lone-services/services/sale/internal/dao/sale_group.go
T
2026-08-28 10:49:09 +08:00

23 lines
771 B
Go

package dao
import "lone-services/pkg/utils"
type SaleGroup struct {
Id int64 `gorm:"column:id;primaryKey;autoIncrement" json:"id"`
Name string `gorm:"column:name" json:"name"`
CreatedAt utils.CustomTime `gorm:"column:created_at" json:"created_at"`
UpdatedAt utils.CustomTime `gorm:"column:updated_at" json:"updated_at"`
}
type SaleGroupCreate struct {
Id int64 `gorm:"column:id;primaryKey;autoIncrement" json:"id"`
Name string `gorm:"column:name" json:"name"`
CreatedAt utils.CustomTime `gorm:"column:created_at" json:"created_at"`
UpdatedAt utils.CustomTime `gorm:"column:updated_at" json:"updated_at"`
}
type SaleGroupNameItem struct {
Id int64 `json:"id"`
Name string `json:"name"`
}