Documentation ¶
Index ¶
- Constants
- Variables
- func Init(registry *beeorm.Registry)
- type APILogEntity
- func (e *APILogEntity) SetCreatedAt(value time.Time)
- func (e *APILogEntity) SetID(value uint64)
- func (e *APILogEntity) SetMessage(value string)
- func (e *APILogEntity) SetRequest(value interface{})
- func (e *APILogEntity) SetResponse(value interface{})
- func (e *APILogEntity) SetStatus(value string)
- func (e *APILogEntity) SetType(value string)
- type AdminUserEntity
- type DevPanelUserEntity
Constants ¶
View Source
const ( APILogStatusNew = "new" APILogStatusCompleted = "completed" APILogStatusFailed = "failed" APILogTypeApple = "Apple" )
Variables ¶
View Source
var APILogStatusAll = apiLogStatus{ New: APILogStatusNew, Completed: APILogStatusCompleted, Failed: APILogStatusFailed, }
View Source
var APILogTypeAll = apiLogType{ Apple: APILogTypeApple, }
Functions ¶
Types ¶
type APILogEntity ¶ added in v0.1.1
type APILogEntity struct { beeorm.ORM `orm:"table=api_log;redisCache"` ID uint64 Type string `orm:"enum=entity.APILogTypeAll;required"` Status string `orm:"enum=entity.APILogStatusAll;required"` Request interface{} Response interface{} Message string CreatedAt time.Time `orm:"time=true"` }
func (*APILogEntity) SetCreatedAt ¶ added in v0.1.1
func (e *APILogEntity) SetCreatedAt(value time.Time)
func (*APILogEntity) SetID ¶ added in v0.1.1
func (e *APILogEntity) SetID(value uint64)
func (*APILogEntity) SetMessage ¶ added in v0.1.1
func (e *APILogEntity) SetMessage(value string)
func (*APILogEntity) SetRequest ¶ added in v0.1.1
func (e *APILogEntity) SetRequest(value interface{})
func (*APILogEntity) SetResponse ¶ added in v0.1.1
func (e *APILogEntity) SetResponse(value interface{})
func (*APILogEntity) SetStatus ¶ added in v0.1.1
func (e *APILogEntity) SetStatus(value string)
func (*APILogEntity) SetType ¶ added in v0.1.1
func (e *APILogEntity) SetType(value string)
type AdminUserEntity ¶
type AdminUserEntity struct { beeorm.ORM `orm:"table=admin_users;log=log_db_pool;redisCache;redisSearch=search_pool"` ID uint64 RoleID *hitrixEntity.RoleEntity `orm:"required"` }
func (*AdminUserEntity) SetRole ¶ added in v1.2.59
func (u *AdminUserEntity) SetRole(roleEntity *hitrixEntity.RoleEntity)
type DevPanelUserEntity ¶ added in v0.8.93
type DevPanelUserEntity struct { beeorm.ORM `orm:"table=dev_panel_users;redisCache;redisSearch=search_pool"` ID uint64 Email string `orm:"unique=Email;searchable"` Password string }
func (*DevPanelUserEntity) CanAuthenticate ¶ added in v0.9.69
func (u *DevPanelUserEntity) CanAuthenticate() bool
func (*DevPanelUserEntity) GetPassword ¶ added in v0.8.93
func (u *DevPanelUserEntity) GetPassword() string
func (*DevPanelUserEntity) GetUniqueFieldName ¶ added in v0.8.93
func (u *DevPanelUserEntity) GetUniqueFieldName() string
func (*DevPanelUserEntity) GetUsername ¶ added in v0.8.93
func (u *DevPanelUserEntity) GetUsername() string
Click to show internal directories.
Click to hide internal directories.