user.go 748 B

123456789101112131415161718192021222324252627282930313233
  1. // ================================================================================
  2. // Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
  3. // You can delete these comments if you wish manually maintain this interface file.
  4. // ================================================================================
  5. package service
  6. import (
  7. "context"
  8. "jygit.jydev.jianyu360.cn/wangshan/user/internal/model/entity"
  9. )
  10. type (
  11. IUser interface {
  12. GetMsg(ctx context.Context, in *entity.MsgInfoInput) (out *entity.MsgInfoOutput)
  13. }
  14. )
  15. var (
  16. localUser IUser
  17. )
  18. func User() IUser {
  19. if localUser == nil {
  20. panic("implement not found for interface IUser, forgot register?")
  21. }
  22. return localUser
  23. }
  24. func RegisterUser(i IUser) {
  25. localUser = i
  26. }