Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserSvc ¶
type UserSvc interface { GetUser(req model.User) GetUserList(req model.User) Add(req model.User) Update(req model.User) }
func NewUserSvcImpl ¶
func NewUserSvcImpl() UserSvc
type UserSvcImpl ¶
type UserSvcImpl struct {
// contains filtered or unexported fields
}
UserSvcImpl
@Description: service的实现定义,可以使用全局注册的db进行操作,减少dao层定义,具体按项目分层架构
func (*UserSvcImpl) Add ¶
func (s *UserSvcImpl) Add(req model.User)
func (UserSvcImpl) Delete ¶
func (s UserSvcImpl) Delete(id int)
func (*UserSvcImpl) GetUser ¶
func (s *UserSvcImpl) GetUser(req model.User)
func (*UserSvcImpl) GetUserList ¶
func (s *UserSvcImpl) GetUserList(req model.User)
func (UserSvcImpl) Update ¶
func (s UserSvcImpl) Update(req model.User)
Click to show internal directories.
Click to hide internal directories.