小程序一些功能更新
This commit is contained in:
18
internal/model/entity/entity_event_seats.go
Normal file
18
internal/model/entity/entity_event_seats.go
Normal 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"`
|
||||
}
|
||||
Reference in New Issue
Block a user