user_service.go 479 B

123456789101112131415161718
  1. package service
  2. import (
  3. "bigdata_archives/app/e"
  4. "bigdata_archives/app/model"
  5. "bigdata_archives/unity"
  6. )
  7. type UserService interface {
  8. // Login 账号密码登录
  9. Login(userName, password string) (model.UserDto, e.Rescode)
  10. // AddUser 添加用户
  11. AddUser(user model.User) (model.User, e.Rescode)
  12. // GetUser 获取用户
  13. GetUser(params unity.QueryPageParams) ([]model.User, e.Rescode)
  14. // GetUserById 根据id获取用户
  15. GetUserById(id int) (model.User, e.Rescode)
  16. }