golang-im聊天
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

2 年前
2 年前
1234567891011121314151617181920
  1. package app
  2. import (
  3. "context"
  4. "gim/internal/business/domain/user/service"
  5. )
  6. type authApp struct{}
  7. var AuthApp = new(authApp)
  8. // SignIn 长连接登录
  9. func (*authApp) SignIn(ctx context.Context, phoneNumber, code string, masterId, deviceId int64) (bool, int64, string, int64, error) {
  10. return service.AuthService.SignIn(ctx, phoneNumber, code, masterId, deviceId)
  11. }
  12. // Auth 验证用户是否登录
  13. func (*authApp) Auth(ctx context.Context, userId, deviceId int64, token string) error {
  14. return service.AuthService.Auth(ctx, userId, deviceId, token)
  15. }