Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Krud ¶
type Krud struct {
Actions string `gorm:"column:actions" json:"actions"`
CreatedAt *time.Time `gorm:"column:created_at" json:"created_at"`
DeletedAt *time.Time `gorm:"column:deleted_at" json:"-"`
Form int `gorm:"column:form" json:"form"`
Grid int `gorm:"column:grid" json:"grid"`
ID int `gorm:"column:id;primaryKey;autoIncrement" json:"id"`
Template string `gorm:"column:template" json:"template"`
Title string `gorm:"column:title" json:"title"`
UpdatedAt *time.Time `gorm:"column:updated_at" json:"updated_at"`
}
type NotificationTargets ¶
type NotificationTargets struct {
Body string `gorm:"column:body" json:"body"`
Condition string `gorm:"column:condition" json:"condition"`
ID int `gorm:"column:id;primaryKey;autoIncrement" json:"id"`
Link string `gorm:"column:link" json:"link"`
SchemaID int `gorm:"column:schema_id" json:"schema_id"`
TargetActions string `gorm:"column:target_actions" json:"target_actions"`
TargetRole int `gorm:"column:target_role" json:"target_role"`
Title string `gorm:"column:title" json:"title"`
}
func (*NotificationTargets) TableName ¶
func (n *NotificationTargets) TableName() string
TableName sets the insert table name for this struct type
type UserForm ¶
type UserForm struct {
Avatar string `gorm:"column:avatar" json:"avatar"`
Bio string `gorm:"column:bio" json:"bio"`
Birthday *time.Time `gorm:"column:birthday" json:"birthday"`
CreatedAt *time.Time `gorm:"column:created_at" json:"-"`
DeletedAt *time.Time `gorm:"column:deleted_at" json:"-"`
Email string `gorm:"column:email" json:"email"`
FirstName string `gorm:"column:first_name" json:"first_name"`
Gender string `gorm:"column:gender" json:"gender"`
ID string `gorm:"column:id;primaryKey;autoIncrement" json:"id"`
LastName string `gorm:"column:last_name" json:"last_name"`
Login string `gorm:"column:login" json:"login"`
Password string `gorm:"column:password" json:"password"`
Phone string `gorm:"column:phone" json:"phone"`
RegisterNumber string `gorm:"column:register_number" json:"register_number"`
Role int `gorm:"column:role" json:"role"`
//Status string `gorm:"column:status" json:"status"`
UpdatedAt *time.Time `gorm:"column:updated_at" json:"-"`
}
type UserProfile ¶
type UserProfile struct {
Avatar string `gorm:"column:avatar" json:"avatar"`
Bio string `gorm:"column:bio" json:"bio"`
Birthday *time.Time `gorm:"column:birthday" json:"birthday"`
Phone string `gorm:"column:phone" json:"phone"`
FirstName string `gorm:"column:first_name" json:"first_name"`
Gender string `gorm:"column:gender" json:"gender"`
ID string `gorm:"column:id;primaryKey;autoIncrement" json:"id"`
LastName string `gorm:"column:last_name" json:"last_name"`
Login string `gorm:"column:login;unique_index;not null;unique" json:"login"`
Email string `gorm:"column:email;unique_index;not null;unique" json:"email"`
RegisterNumber string `gorm:"column:register_number;not null;unique" json:"register_number"`
}
func (*UserProfile) TableName ¶
func (u *UserProfile) TableName() string
TableName sets the insert table name for this struct type
type Users ¶
type VbSchemas ¶
Click to show internal directories.
Click to hide internal directories.