cc23c30c9e
CI / changes (push) Successful in 1m34s
CI / ad (push) Successful in 27s
CI / admin (push) Successful in 17s
CI / aiserver (push) Successful in 26s
CI / analysis (push) Successful in 22s
CI / bff (push) Successful in 21s
CI / chore (push) Successful in 20s
CI / equipment (push) Successful in 19s
CI / express (push) Successful in 19s
CI / factory (push) Successful in 19s
CI / message (push) Successful in 18s
CI / order (push) Successful in 19s
CI / payment (push) Successful in 17s
CI / percutaneous (push) Successful in 17s
CI / product (push) Successful in 19s
CI / record (push) Successful in 19s
CI / sale (push) Successful in 19s
CI / store (push) Successful in 20s
CI / support (push) Successful in 19s
CI / task (push) Successful in 21s
CI / user (push) Successful in 22s
CI / water (push) Successful in 25s
CI / wecom (push) Successful in 21s
CI / ws (push) Successful in 9s
24 lines
1.5 KiB
Go
24 lines
1.5 KiB
Go
package dao
|
|
|
|
import "lone-services/pkg/utils"
|
|
|
|
// UseLogCreate 权限表
|
|
type UseLogCreate struct {
|
|
Id int64 `gorm:"column:id;type:int;not null;autoIncrement" json:"id"`
|
|
UserId int64 `gorm:"column:user_id;type:int;default:NULL" json:"user_id"` // 用户
|
|
ProductId int64 `gorm:"column:product_id;type:int;default:0" json:"product_id"` // 产品ID
|
|
ProductName string `gorm:"column:product_name;type:varchar(255);default:NULL" json:"product_name"` // 产品名
|
|
UseMg int32 `gorm:"column:use_mg;type:smallint;not null;default:0" json:"use_mg"` // 使用量
|
|
PlanningId int64 `gorm:"column:planning_id;type:int;not null;default:0" json:"planning_id"` // 计划ID
|
|
}
|
|
|
|
type UseLogInfo struct {
|
|
Id int64 `gorm:"column:id;type:int;not null;autoIncrement" json:"id"`
|
|
UserId int64 `gorm:"column:user_id;type:int;default:NULL" json:"user_id"` // 用户
|
|
ProductId int64 `gorm:"column:product_id;type:int;default:0" json:"product_id"` // 产品ID
|
|
ProductName string `gorm:"column:product_name;type:varchar(255);default:NULL" json:"product_name"` // 产品名
|
|
UseMg int32 `gorm:"column:use_mg;type:smallint;not null;default:0" json:"use_mg"` // 使用量
|
|
PlanningId int64 `gorm:"column:planning_id;type:int;not null;default:0" json:"planning_id"` // 计划ID
|
|
CreateTime utils.CustomTime `json:"create_time"`
|
|
}
|