Documentation ¶
Index ¶
- type TableName
- func (entity *TableName) AutoMigrate(db *gorm.DB) error
- func (entity *TableName) GetAdate() model.LocalDate
- func (entity *TableName) GetAdatetime() model.LocalTime
- func (entity *TableName) GetAtimestamp() model.LocalTime
- func (entity *TableName) GetBitField() model.BitField
- func (entity *TableName) GetId() int64
- func (entity *TableName) GetName() string
- func (entity *TableName) GetRowid() int64
- func (entity *TableName) GetT() int32
- func (entity *TableName) GetTimeHms() int64
- func (entity *TableName) GetVc() float64
- func (entity *TableName) Ini(iniPk bool) *TableName
- func (entity *TableName) IniNil(iniPk bool) *TableName
- func (entity *TableName) SetAdate(Adate model.LocalDate)
- func (entity *TableName) SetAdatetime(Adatetime model.LocalTime)
- func (entity *TableName) SetAtimestamp(Atimestamp model.LocalTime)
- func (entity *TableName) SetBitField(BitField model.BitField)
- func (entity *TableName) SetId(Id int64)
- func (entity *TableName) SetName(Name string)
- func (entity *TableName) SetRowid(Rowid int64)
- func (entity *TableName) SetT(T int32)
- func (entity *TableName) SetTimeHms(TimeHms int64)
- func (entity *TableName) SetVc(Vc float64)
- func (entity *TableName) String() string
- func (entity *TableName) TableName() string
- func (entity *TableName) ToString() string
- func (entity *TableName) Unmarshal(body string) error
- func (entity *TableName) UnmarshalBy(body []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TableName ¶
type TableName struct { /* */ Id *int64 `gorm:"column:id;type:bigint(20);PRIMARY_KEY;comment:''" json:"id,string"` /* */ Rowid *int64 `gorm:"column:rowid;type:bigint(20);comment:''" json:"rowid,string"` /* */ Vc *float64 `gorm:"column:vc;type:decimal(22,2);comment:''" json:"vc"` /* */ Name *string `gorm:"column:name;type:varchar(223);comment:''" json:"name"` /* */ TimeHms *int64 `gorm:"column:time_hms;type:bigint(20);comment:''" json:"timeHms,string"` /* */ Adatetime *model.LocalTime `gorm:"column:adatetime;type:datetime;comment:''" json:"adatetime"` /* */ Atimestamp *model.LocalTime `gorm:"column:atimestamp;type:timestamp;comment:''" json:"atimestamp"` /* */ Adate *model.LocalDate `gorm:"column:adate;type:date;comment:''" json:"adate"` /* */ BitField *model.BitField `gorm:"column:bit_field;type:bit(1);comment:''" json:"bitField"` /* */ T *int32 `gorm:"column:t;type:int(11);comment:''" json:"t"` }
func (*TableName) GetAdatetime ¶
func (*TableName) GetAtimestamp ¶
func (*TableName) GetBitField ¶
func (*TableName) GetTimeHms ¶
func (*TableName) SetAdatetime ¶
func (*TableName) SetAtimestamp ¶
func (*TableName) SetBitField ¶
func (*TableName) SetTimeHms ¶
func (*TableName) UnmarshalBy ¶
Click to show internal directories.
Click to hide internal directories.