Documentation ¶
Overview ¶
Code generated by db2go. DO NOT EDIT.
Code generated by db2go. DO NOT EDIT.
Index ¶
- 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) SetId(v int32)
- 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() int32
- func (do *UsersDO) GetName() string
- func (do *UsersDO) GetPhone() string
- func (do *UsersDO) GetSex() int8
- func (do *UsersDO) GetUpdatedAt() string
- func (do *UsersDO) SetBalance(v float64)
- func (do *UsersDO) SetDisable(v int8)
- func (do *UsersDO) SetEmail(v string)
- func (do *UsersDO) SetId(v int32)
- func (do *UsersDO) SetName(v string)
- func (do *UsersDO) SetPhone(v string)
- func (do *UsersDO) SetSex(v int8)
Constants ¶
This section is empty.
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" db:"id" ` //incr id ClassNo string `json:"class_no" db:"class_no" ` //class no UserId int32 `json:"user_id" db:"user_id" ` //student id CreatedAt string `json:"created_at" db:"created_at" sqlca:"readonly"` //create time UpdatedAt string `json:"updated_at" db:"updated_at" sqlca:"readonly"` //update time }
func (*ClassesDO) GetClassNo ¶
func (*ClassesDO) GetCreatedAt ¶
func (*ClassesDO) GetUpdatedAt ¶
func (*ClassesDO) SetClassNo ¶
type UsersDO ¶
type UsersDO struct { Id int32 `json:"id" db:"id" ` //auto inc id Name string `json:"name" db:"name" ` //user name Phone string `json:"phone" db:"phone" ` //phone number Sex int8 `json:"sex" db:"sex" ` //user sex Email string `json:"email" db:"email" ` //email Disable int8 `json:"disable" db:"disable" ` //disabled(0=false 1=true) Balance float64 `json:"balance" db:"balance" ` //balance of decimal CreatedAt string `json:"created_at" db:"created_at" sqlca:"readonly"` //create time UpdatedAt string `json:"updated_at" db:"updated_at" sqlca:"readonly"` //update time }
func (*UsersDO) GetBalance ¶
func (*UsersDO) GetCreatedAt ¶
func (*UsersDO) GetDisable ¶
func (*UsersDO) GetUpdatedAt ¶
func (*UsersDO) SetBalance ¶
func (*UsersDO) SetDisable ¶
Click to show internal directories.
Click to hide internal directories.