Documentation ¶
Index ¶
- Variables
- type GqaDate
- func (d *GqaDate) GobDecode(b []byte) error
- func (d GqaDate) GobEncode() ([]byte, error)
- func (d GqaDate) GormDataType() string
- func (d GqaDate) MarshalJSON() ([]byte, error)
- func (d *GqaDate) Scan(v interface{}) error
- func (d GqaDate) String() string
- func (d *GqaDate) UnmarshalJSON(data []byte) error
- func (d GqaDate) Value() (driver.Value, error)
- type GqaModel
Constants ¶
This section is empty.
Variables ¶
View Source
var ( GqaConfig config.Config GqaViper *viper.Viper GqaSLogger *slog.Logger GqaDb *gorm.DB GqaCron *cron.Cron GqaServeUpload = "upload" GqaServeAvatar = "avatar" GqaServeFile = "file" GqaServeLogo = "logo" GqaServeBanner = "banner" GqaOsType = runtime.GOOS )
View Source
var Store = base64Captcha.DefaultMemStore
Functions ¶
This section is empty.
Types ¶
type GqaDate ¶
func (GqaDate) GormDataType ¶
func (GqaDate) MarshalJSON ¶
func (*GqaDate) UnmarshalJSON ¶
type GqaModel ¶
type GqaModel struct { Id uint `json:"id" gorm:"comment:id;primarykey;autoIncrement;"` CreatedAt time.Time `json:"created_at"` CreatedBy string `json:"created_by" gorm:"index;"` UpdatedAt time.Time `json:"updated_at"` UpdatedBy string `json:"updated_by"` DeletedAt gorm.DeletedAt `json:"-" gorm:"index"` Sort uint `json:"sort" gorm:"comment:排序;default:1;"` Stable string `json:"stable" gorm:"comment:系统内置;default:yesNo_no;type:varchar(10);"` Status string `json:"status" gorm:"comment:状态;default:onOff_on;type:varchar(10);"` Memo string `json:"memo" gorm:"comment:备注描述;type:text;"` }
Click to show internal directories.
Click to hide internal directories.