user.go 513 B

123456789101112131415161718192021222324
  1. package service
  2. import "sportfitness/base/repository/grpc/bsw/im"
  3. type User struct {
  4. base
  5. }
  6. func (User) SignInUserCodePassword(userCode, password, ip, ClientInfo,
  7. codeId, verifyCode string) (token string) {
  8. token, userId := im.SignInUserCodePassword(userCode, password, ip, ClientInfo,
  9. codeId, verifyCode)
  10. println(token, userId)
  11. return token
  12. }
  13. func (User) GenVerifyImage(height, width int32) (string, string) {
  14. codeId, imageBase64 := im.GenVerifyImage(height, width)
  15. return codeId, imageBase64
  16. }