Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GRPCErrCode ¶
func GRPCStatus ¶
Types ¶
type UserInfoModifyView ¶
type UserInfoRegisterView ¶
type UserServiceClient ¶
type UserServiceClient interface { Register(ctx context.Context, info *UserInfoRegisterView) (userID int, err error) Login(ctx context.Context, username string, password string, ip string, expireAt *time.Time) (token string, actualExpireAt time.Time, err error) Authenticate(ctx context.Context, token string) (userID int, err error) GetUserInfo(ctx context.Context, userID int) (info *UserInfo, err error) ModifyUserInfo(ctx context.Context, info *UserInfoModifyView, userID int) error ModifyPassword(ctx context.Context, newPassword string, oldPassword string, userID int) error }
func NewUserServiceClient ¶
func NewUserServiceClient(ctx context.Context, serviceAddr string, opts ...grpc.DialOption) UserServiceClient
Click to show internal directories.
Click to hide internal directories.