model

package
v0.2.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 1, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MeetingRoomStatusEnabled  = 1
	MeetingRoomStatusDisabled = -1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MeetingRoom

type MeetingRoom struct {
	ID         uint64         `json:"id,omitempty,string" gorm:"primaryKey;autoIncrement:false"`
	Name       string         `json:"name" gorm:"size:50;comment:会议室名称"`
	Position   string         `json:"position" gorm:"size:200;comment:会议室位置"`
	Capacity   int            `json:"capacity" gorm:"comment:最大容纳人数"`
	Devices    string         `json:"devices" gorm:"size:2000;comment:设备列表"`
	Status     int            `json:"status" gorm:"comment:状态,1:正常,-1:禁用"`
	Remark     string         `json:"remark" gorm:"size:2000;comment:备注"`
	CreatorID  uint64         `json:"creatorId,omitempty,string" gorm:"comment:创建者ID"`
	CreateTime int64          `json:"createTime" gorm:"autoCreateTime:milli"`
	DeleteTime gorm.DeletedAt `json:"deleteTime,omitempty" gorm:"index"`
}

func (*MeetingRoom) TableComment

func (*MeetingRoom) TableComment() string

func (*MeetingRoom) UnmarshalJSON

func (mr *MeetingRoom) UnmarshalJSON(b []byte) error

type MeetingRoomReservation

type MeetingRoomReservation struct {
	ID            uint64 `json:"id,omitempty,string" gorm:"primaryKey;autoIncrement:false"`
	MeetingRoomID uint64 `json:"meetingRoomId,omitempty,string" gorm:"comment:会议室ID"`
	StartTime     int64  `json:"startTime" gorm:"comment:开始时间"`
	EndTime       int64  `json:"endTime" gorm:"comment:结束时间"`
	Subject       string `json:"subject" gorm:"size:200;comment:会议主题"`
	Participants  string `json:"participants" gorm:"size:2000;comment:参会人员"`
	BookerID      uint64 `json:"bookerId,omitempty,string" gorm:"comment:预订人ID"`
	CreateTime    int64  `json:"createTime" gorm:"autoCreateTime:milli"`
	DeleteTime    int64  `json:"deleteTime,omitempty" gorm:"index"`
}

func (*MeetingRoomReservation) TableComment

func (*MeetingRoomReservation) TableComment() string

func (*MeetingRoomReservation) UnmarshalJSON

func (r *MeetingRoomReservation) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL