user_service.go 673 B

12345678910111213141516171819202122
  1. package service
  2. import (
  3. "Ic_ouath/app/e"
  4. "Ic_ouath/models"
  5. )
  6. type User interface {
  7. // PhoneRegist 手机号注册
  8. PhoneRegist(user models.UserRegist) e.Rescode
  9. // Login 账号密码登录
  10. Login(user models.UserRegist) (models.UserDto, e.Rescode)
  11. // CodeLogin 验证码登录
  12. CodeLogin(user models.UserRegist) (models.UserDto, e.Rescode)
  13. // GetUserAll 获取所有用户
  14. GetUserAll() ([]models.User, e.Rescode)
  15. //UpdateUser 更新用户信息
  16. UpdateUser(id any, user models.UserVo) e.Rescode
  17. // DeleteUser 删除用户信息
  18. DeleteUser(ids []string) e.Rescode
  19. UpdatePassword(user models.UserUpdate) e.Rescode
  20. }