Documentation ¶
Index ¶
- Constants
- func CheckFieldCreateUserID(entity Entity) error
- func CheckFieldCreateUserIDResult(checkResult check.Result) error
- func CheckFieldID(entity Entity) error
- func CheckFieldIDResult(checkResult check.Result) error
- func CheckFieldLastUpdateUserID(entity Entity) error
- func CheckFieldLastUpdateUserIDResult(checkResult check.Result) error
- func CheckFieldTenantID(entity Entity) error
- func CheckFieldTenantIDResult(checkResult check.Result) error
- func CheckIDTypeValue(domainCNName string, fieldCNName string, id string) error
- type Base
- type Entity
- type TenantIDField
- type TimeFields
- type UserIDFields
Constants ¶
View Source
const ( FieldID = "ID" FieldTenantID = "TenantID" FieldCreateUserID = "CreateUserID" FieldLastUpdateUserID = "LastUpdateUserID" FieldCreatedTime = "CreatedTime" FieldLastUpdatedTime = "LastUpdatedTime" )
View Source
const ( ColumnID = "id" ColumnTenantID = "tenant_id" ColumnCreateUserID = "create_user_id" ColumnLastUpdateUserID = "last_update_user_id" ColumnCreatedTime = "created_time" ColumnLastUpdatedTime = "last_updated_time" )
Variables ¶
This section is empty.
Functions ¶
func CheckFieldCreateUserID ¶ added in v0.5.1
func CheckFieldCreateUserIDResult ¶ added in v0.5.2
func CheckFieldID ¶ added in v0.5.1
func CheckFieldIDResult ¶ added in v0.5.2
func CheckFieldLastUpdateUserID ¶ added in v0.5.1
func CheckFieldLastUpdateUserIDResult ¶ added in v0.5.2
func CheckFieldTenantID ¶ added in v0.5.1
func CheckFieldTenantIDResult ¶ added in v0.5.2
Types ¶
type Base ¶
type Base struct {
ID string `sqlmapping:"column:id;key;" sqlresult:"column:id;" check:"required,len=32"`
}
func (*Base) GenerateID ¶
type TenantIDField ¶
type TenantIDField struct {
TenantID string `sqlmapping:"column:tenant_id;" sqlresult:"column:tenant_id;" check:"required,len=32"`
}
type TimeFields ¶
type UserIDFields ¶
Click to show internal directories.
Click to hide internal directories.