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

2 年前
12345678910111213141516171819202122232425
  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, pushAlia string) (bool, int64, string, int64, error) {
  10. return service.AuthService.SignIn(ctx, phoneNumber, code, masterId, deviceId, pushAlia)
  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. }
  16. // AuthMaster 验证站长权限
  17. func (*authApp) AuthMaster(ctx context.Context, masterId string) error {
  18. return service.AuthService.AuthMaster(ctx, masterId)
  19. }