小程序一些功能更新

This commit is contained in:
李琦
2026-09-29 10:57:01 +08:00
parent 0cb70a7618
commit 3bb7fa8db3
96 changed files with 13890 additions and 213 deletions

View File

@@ -0,0 +1,18 @@
package entity
import "github.com/gogf/gf/v2/os/gtime"
// EventSeats 座位(默认编号 1..capacity,顺时针自桌正上方(12 点)起)。
//
// IsManual 标记该座位号是否被人工改过(决定「自动排座」fill 是否保留);
// EmployeeId 为 NULL 表示空位。去重键 (EventId, TableId, SeatNo)。
type EventSeats struct {
Id int64 `json:"id"`
EventId int64 `json:"event_id"` // 冗余,便于按活动查座
TableId int64 `json:"table_id"`
SeatNo int `json:"seat_no"`
IsManual int `json:"is_manual"` // 1 已手工指定编号 / 0 默认
EmployeeId *int64 `json:"employee_id"` // NULL=空位
CreatedAt *gtime.Time `json:"created_at"`
UpdatedAt *gtime.Time `json:"updated_at"`
}