user_service.go 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. package server
  2. import (
  3. "xiaoniaokuaiyan.com/xiaoniao/entity"
  4. )
  5. type UserService interface {
  6. Login(params map[string]string) (interface{}, error)
  7. LoginV2(params map[string]string) (interface{}, error)
  8. LoginCoupons(params map[string]string) (interface{}, error)
  9. GetHomeInvite(params map[string]string) (interface{}, error)
  10. Regist(userName string, password string, vcode string) (interface{}, error)
  11. ResetPwd(userName, password, newPassword string) (interface{}, error)
  12. ForgetPwd(userName, vcode, newPassword string) (interface{}, error)
  13. SetOpenid(mobile, openid, wxType string) (interface{}, error)
  14. GetQueueNotice(mobile string) (interface{}, error)
  15. UpdateQueueNotice(notice *entity.QueueNotice) (interface{}, error)
  16. GetRelationship() (interface{}, error)
  17. UpdateUserinfo(uinfo *entity.User) (interface{}, error)
  18. GetUserWxInfo(openid string) (interface{}, error)
  19. SaveInfo(uinfo *entity.User) (interface{}, error)
  20. SaveHobby(uinfo *entity.User) (interface{}, error)
  21. GetHobby() (interface{}, error)
  22. GetCustomFileList(customId int) (interface{}, error)
  23. GetCustomFile(customFileId int) (interface{}, error)
  24. UpdateCustomFileLabel(data *entity.CustomInfoLabelsDto) error
  25. AddCustomFile(data *entity.CustomFile) (interface{}, error)
  26. ModifyCustomFile(data *entity.CustomFile) (interface{}, error)
  27. DelCustomFile(customFileId int) error
  28. AddCustomAttachment(item *entity.CustomAttachment) (interface{}, error)
  29. GetCustomAttachmentList(customFileId int, uploadType string) ([]entity.CustomAttachmentDB, error)
  30. GetCustomAttachmentCount(item *entity.CustomFileParam) (interface{}, error)
  31. GetCustomRiskList(customFileId int) (interface{}, error)
  32. GetComprehensive(item *entity.CustomFileParam) (interface{}, error)
  33. GetGetYiDianList(customFileId int) (interface{}, error)
  34. GetDoctorRecommendList(customFileId int) (interface{}, error)
  35. }