Documentation ¶
Index ¶
- Constants
- Variables
- type ClassesDO
- func (do *ClassesDO) GetClassNo() string
- func (do *ClassesDO) GetCreatedAt() string
- func (do *ClassesDO) GetId() int32
- func (do *ClassesDO) GetUpdatedAt() string
- func (do *ClassesDO) GetUserId() int32
- func (do *ClassesDO) SetClassNo(v string)
- func (do *ClassesDO) SetCreatedAt(v string)
- func (do *ClassesDO) SetId(v int32)
- func (do *ClassesDO) SetUpdatedAt(v string)
- func (do *ClassesDO) SetUserId(v int32)
- type UsersDO
- func (do *UsersDO) GetBalance() float64
- func (do *UsersDO) GetCreatedAt() string
- func (do *UsersDO) GetDisable() int8
- func (do *UsersDO) GetEmail() string
- func (do *UsersDO) GetId() uint32
- func (do *UsersDO) GetName() string
- func (do *UsersDO) GetPhone() string
- func (do *UsersDO) GetSex() uint8
- func (do *UsersDO) GetSexName() string
- func (do *UsersDO) GetUpdatedAt() string
- func (do *UsersDO) SetBalance(v float64)
- func (do *UsersDO) SetCreatedAt(v string)
- func (do *UsersDO) SetDisable(v int8)
- func (do *UsersDO) SetEmail(v string)
- func (do *UsersDO) SetId(v uint32)
- func (do *UsersDO) SetName(v string)
- func (do *UsersDO) SetPhone(v string)
- func (do *UsersDO) SetSex(v uint8)
- func (do *UsersDO) SetSexName(v string)
- func (do *UsersDO) SetUpdatedAt(v string)
Constants ¶
View Source
const ( CLASSES_COLUMN_ID = "id" CLASSES_COLUMN_CLASS_NO = "class_no" CLASSES_COLUMN_USER_ID = "user_id" CLASSES_COLUMN_CREATED_AT = "created_at" CLASSES_COLUMN_UPDATED_AT = "updated_at" )
View Source
const ( USERS_COLUMN_ID = "id" USERS_COLUMN_NAME = "name" USERS_COLUMN_PHONE = "phone" USERS_COLUMN_SEX = "sex" USERS_COLUMN_EMAIL = "email" USERS_COLUMN_DISABLE = "disable" USERS_COLUMN_BALANCE = "balance" USERS_COLUMN_SEX_NAME = "sex_name" USERS_COLUMN_CREATED_AT = "created_at" USERS_COLUMN_UPDATED_AT = "updated_at" )
Variables ¶
View Source
var TableNameClasses = "classes" //
View Source
var TableNameUsers = "users" //
Functions ¶
This section is empty.
Types ¶
type ClassesDO ¶
type ClassesDO struct { Id int32 `json:"id,omitempty" db:"id" ` //incr id ClassNo string `json:"class_no,omitempty" db:"class_no" ` //class no UserId int32 `json:"user_id,omitempty" db:"user_id" ` //student id CreatedAt string `json:"created_at,omitempty" db:"created_at" sqlca:"readonly"` //create time UpdatedAt string `json:"updated_at,omitempty" db:"updated_at" sqlca:"readonly"` //update time }
func (*ClassesDO) GetClassNo ¶
func (*ClassesDO) GetCreatedAt ¶
func (*ClassesDO) GetUpdatedAt ¶
func (*ClassesDO) SetClassNo ¶
func (*ClassesDO) SetCreatedAt ¶ added in v1.2.10
func (*ClassesDO) SetUpdatedAt ¶ added in v1.2.10
type UsersDO ¶
type UsersDO struct { Id uint32 `json:"id,omitempty" db:"id" ` //auto inc id Name string `json:"name,omitempty" db:"name" ` //user name Phone string `json:"phone,omitempty" db:"phone" ` //phone number Sex uint8 `json:"sex,omitempty" db:"sex" ` //user sex Email string `json:"email,omitempty" db:"email" ` //email Disable int8 `json:"disable,omitempty" db:"disable" ` //disabled(0=false 1=true) Balance float64 `json:"balance,omitempty" db:"balance" ` //balance of decimal SexName string `json:"sex_name,omitempty" db:"sex_name" ` //sex name CreatedAt string `json:"created_at,omitempty" db:"created_at" sqlca:"readonly"` //create time UpdatedAt string `json:"updated_at,omitempty" db:"updated_at" sqlca:"readonly"` //update time }
func (*UsersDO) GetBalance ¶
func (*UsersDO) GetCreatedAt ¶
func (*UsersDO) GetDisable ¶
func (*UsersDO) GetSexName ¶ added in v1.2.10
func (*UsersDO) GetUpdatedAt ¶
func (*UsersDO) SetBalance ¶
func (*UsersDO) SetCreatedAt ¶ added in v1.2.10
func (*UsersDO) SetDisable ¶
func (*UsersDO) SetSexName ¶ added in v1.2.10
func (*UsersDO) SetUpdatedAt ¶ added in v1.2.10
Click to show internal directories.
Click to hide internal directories.