Documentation
¶
Index ¶
- Variables
- type User
- func (u *User) Add(ctx context.Context, executor basis.Executor, user User) (lastInsertId int64, err error)
- func (u *User) Deleter() basis.Delete
- func (u *User) FindByQuery(ctx context.Context, executor basis.Executor, query basis.Query) ([]User, error)
- func (u *User) FindOne(ctx context.Context, executor basis.Executor, user User) (User, error)
- func (u *User) FindSome(ctx context.Context, executor basis.Executor, idList ...any) ([]User, error)
- func (u *User) GetDefault(name string) string
- func (u *User) GetEnums(name string) []string
- func (u *User) GetLabel(name string) string
- func (u *User) GetSize(name string) int
- func (u *User) Inserter() basis.Insert
- func (u *User) PrimaryField() string
- func (u *User) PrimaryValue() any
- func (u *User) Query() *sqlite.Query
- func (u *User) TableName() string
- func (u *User) Updater() basis.Update
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultUser = &User{} UserMapping *basis.Mapping )
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct { Id int64 `json:"id" field:"id" size:"0" label:""` UserName string `json:"userName" field:"user_name" size:"64" label:""` HeadImg string `json:"headImg" field:"head_img" size:"0" label:""` CreatedAt uint64 `json:"createdAt" field:"created_at" size:"0" label:""` Status int8 `json:"status" field:"status" size:"0" label:""` Amount float64 `json:"amount" field:"amount" size:"0" label:""` Remark string `json:"remark" field:"remark" size:"0" label:""` }
func (*User) FindByQuery ¶
func (*User) GetDefault ¶
func (*User) PrimaryField ¶
func (*User) PrimaryValue ¶
Click to show internal directories.
Click to hide internal directories.