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
27 lines
1.8 KiB
Go
27 lines
1.8 KiB
Go
package dao
|
|
|
|
import "lone-services/pkg/utils"
|
|
|
|
// PlanningProductCreate 权限表
|
|
type PlanningProductCreate struct {
|
|
Id int64 `gorm:"column:id;type:int;not null;autoIncrement" json:"id"`
|
|
UserId int64 `gorm:"column:user_id;type:int;not null" json:"user_id"` // 用户ID
|
|
PlanningId int64 `gorm:"column:planning_id;type:int;default:NULL" json:"planning_id"` // 计划ID
|
|
ProductId int64 `gorm:"column:product_id;type:int;default:0" json:"product_id"` // 产品ID
|
|
Sort int32 `gorm:"column:sort;type:tinyint;default:NULL" json:"sort"` // 排序
|
|
EveryTimeUseMg int32 `gorm:"column:every_time_use_mg;type:smallint;default:NULL" json:"every_time_use_mg"` // 每次使用量
|
|
Status int32 `gorm:"column:status;type:tinyint(1);not null;default:1" json:"status"` // 状态:1为正常,2为删除
|
|
|
|
}
|
|
|
|
type PlanningProductInfo struct {
|
|
Id int64 `gorm:"column:id;type:int;not null;autoIncrement" json:"id"`
|
|
UserId int64 `gorm:"column:user_id;type:int;not null" json:"user_id"` // 用户ID
|
|
PlanningId int64 `gorm:"column:planning_id;type:int;default:NULL" json:"planning_id"` // 计划ID
|
|
ProductId int64 `gorm:"column:product_id;type:int;default:0" json:"product_id"` // 产品ID
|
|
Sort int32 `gorm:"column:sort;type:tinyint;default:NULL" json:"sort"` // 排序
|
|
UseMg int32 `gorm:"column:use_mg;type:smallint;default:NULL" json:"use_mg"` // 每次使用量
|
|
Status int32 `gorm:"column:status;type:tinyint(1);not null;default:1" json:"status"` // 状态:1为正常,2为删除
|
|
CreateTime utils.CustomTime `json:"create_time"`
|
|
}
|