123456789101112131415161718192021222324252627282930313233 |
- // ================================================================================
- // Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
- // You can delete these comments if you wish manually maintain this interface file.
- // ================================================================================
- package service
- import (
- "context"
- v1 "cris/api/user/v1"
- )
- type (
- IUser interface {
- Register(ctx context.Context, req *v1.UserRegisterReq) error
- Login(ctx context.Context, req *v1.UserLoginReq) error
- }
- )
- var (
- localUser IUser
- )
- func User() IUser {
- if localUser == nil {
- panic("implement not found for interface IUser, forgot register?")
- }
- return localUser
- }
- func RegisterUser(i IUser) {
- localUser = i
- }
|