Documentation ¶
Index ¶
- func Instance() *userService
- func RegisterPublicEntries(app *iris.Application)
- type BasicForm
- type DbOpOpt
- type LoginForm
- type LoginResp
- type UserAddForm
- type UserAddResp
- type UserDao
- func (s *UserDao) Add(in *models.User) (id uint64, err error)
- func (s *UserDao) DropById(id uint64) (rows int64, err error)
- func (s *UserDao) Exists(id uint64) (yes bool)
- func (s *UserDao) ExistsBy(where string, args ...interface{}) (id uint64, yes bool)
- func (s *UserDao) Get(tmpl *models.User) (ret *models.User, err error)
- func (s *UserDao) GetBy(where string, args ...interface{}) (ret *models.User, err error)
- func (s *UserDao) GetById(id uint64) (ret *models.User, err error)
- func (s *UserDao) GetLanguageByName(name string) (ret *models.Language)
- func (s *UserDao) List(tmpl *models.User, opts ...DbOpOpt) (ret []*models.User, err error)
- func (s *UserDao) Login(userInfo *LoginForm) (ret *LoginResp, err error)
- func (s *UserDao) Remove(tmpl *models.User) (rows int64, err error)
- func (s *UserDao) RemoveById(id uint64) (rows int64, err error)
- func (s *UserDao) Update(in *models.User, fieldNames ...string) (ret *models.User, rows int64, err error)
- type UserGetForm
- type UserGetResp
- type UserGetRespNormal
- type UserListForm
- type UserListResp
- type UserListRespNormal
- type UserRemoveForm
- type UserRemoveResp
- type UserService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterPublicEntries ¶
func RegisterPublicEntries(app *iris.Application)
Types ¶
type UserAddForm ¶
type UserAddResp ¶
type UserDao ¶
type UserDao struct{}
func NewUserDao ¶
func NewUserDao() *UserDao
func (*UserDao) GetLanguageByName ¶
type UserGetForm ¶
type UserGetRespNormal ¶
type UserGetRespNormal struct { models.BasicResp Data []*models.NormalUser }
type UserListForm ¶
type UserListRespNormal ¶
type UserListRespNormal struct { models.BasicResp Data []*models.NormalUser }
type UserRemoveForm ¶
type UserRemoveResp ¶
type UserService ¶
type UserService interface { Add(form UserAddForm) Remove(form UserRemoveForm) }
func Register ¶
func Register(app *iris.Application) UserService
Click to show internal directories.
Click to hide internal directories.