Documentation ¶
Index ¶
- type Position
- func (entity *Position) AutoMigrate(db *gorm.DB) error
- func (entity *Position) GetCreateDate() model.LocalTime
- func (entity *Position) GetEnabled() int8
- func (entity *Position) GetId() int32
- func (entity *Position) GetName() string
- func (entity *Position) Ini(iniPk bool) *Position
- func (entity *Position) IniNil(iniPk bool) *Position
- func (entity *Position) SetCreateDate(CreateDate model.LocalTime)
- func (entity *Position) SetEnabled(Enabled int8)
- func (entity *Position) SetId(Id int32)
- func (entity *Position) SetName(Name string)
- func (entity *Position) String() string
- func (entity *Position) TableName() string
- func (entity *Position) ToString() string
- func (entity *Position) Unmarshal(body string) error
- func (entity *Position) UnmarshalBy(body []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Position ¶
type Position struct { /* */ Id *int32 `gorm:"column:id;type:int(11);PRIMARY_KEY;comment:''" json:"id"` /* 职位 */ Name *string `gorm:"column:name;type:varchar(32);comment:'职位'" json:"name"` /* */ CreateDate *model.LocalTime `gorm:"column:createDate;type:timestamp;comment:''" json:"createDate"` /* */ Enabled *int8 `gorm:"column:enabled;type:tinyint(1);comment:'';default:1" json:"enabled"` }
func (*Position) GetCreateDate ¶
func (*Position) GetEnabled ¶
func (*Position) SetCreateDate ¶
func (*Position) SetEnabled ¶
func (*Position) UnmarshalBy ¶
Click to show internal directories.
Click to hide internal directories.