user

package
v0.0.0-...-c85fc74 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StudentsTBName

func StudentsTBName() string

BackendUserTBName 获取 BackendUser 对应的表名称

func TableName

func TableName(name string) string

TableName 下面是统一的表名管理

Types

type Students

type Students struct {
	//StudentId int    `orm:"column(student_id);pk"`
	Id int `orm:"column(student_id);pk"`
	//Id        int
	StuNumber string `orm:"size(32)"`
	Name      string `orm:"size(24)"`
	UserPwd   string `json:"-"`
	// IsSuper            bool
	Status int
}

Students 实体类

func StudentOneByStuNumber

func StudentOneByStuNumber(username, userpwd string) (*Students, error)

BackendUserOneByUserName 根据用户名密码获取单条

func StudentsOne

func StudentsOne(id int) (*Students, error)

func (*Students) TableName

func (a *Students) TableName() string

TableName 设置Students表名

type StudentsQueryParam

type StudentsQueryParam struct {
	common.BaseQueryParam
	UserNameLike string //模糊查询
	RealNameLike string //模糊查询
	Mobile       string //精确查询
	SearchStatus string //为空不查询,有值精确查询
}

BackendUserQueryParam 用于查询的类

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL