Files
lone-services/services/aiserver/internal/dao/planning.go
T
gjs 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
add apis
2026-10-30 18:02:20 +08:00

25 lines
1.5 KiB
Go

package dao
import "lone-services/pkg/utils"
// PlanningCreate 权限表
type PlanningCreate 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
Name string `gorm:"column:name;type:varchar(255);default:NULL" json:"name"` // 名称
BeginTime string `gorm:"column:begin_time;type:char(10);not null;default:''" json:"begin_time"` // 计划开始时间
EndTime string `gorm:"column:end_time;type:char(10);not null;default:''" json:"end_time"` // 计划结束时间
Status int32 `gorm:"column:status;type:tinyint(1);not null;default:1" json:"status"` // 状态:1为正常,2为删除
}
type PlanningInfo 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
Name string `gorm:"column:name;type:varchar(255);default:NULL" json:"name"` // 名称
BeginTime string `gorm:"column:begin_time;type:char(10);not null;default:''" json:"begin_time"` // 计划开始时间
EndTime string `gorm:"column:end_time;type:char(10);not null;default:''" json:"end_time"` // 计划结束时间
Status int32 `gorm:"column:status;type:tinyint(1);not null;default:1" json:"status"` // 状态:1为正常,2为删除
CreateTime utils.CustomTime `json:"create_time"`
}