Versions in this module Expand all Collapse all v1 v1.0.0 Oct 13, 2022 Changes in this version + const FuncCheckToken + const FuncGetProfile + const FuncLogin + const FuncLogout + const FuncRegister + const FuncUpdateProfile + var CheckToken func(request CheckTokenRequest) (CheckTokenResponse, error) + var GetProfile func(request GetProfileRequest) (GetProfileResponse, error) + var Login func(request LoginRequest) (LoginResponse, error) + var Logout func(request LogoutRequest) (LogoutResponse, error) + var Register func(request RegisterRequest) (RegisterResponse, error) + var UpdateProfile func(request UpdateProfileRequest) (UpdateProfileResponse, error) + type CheckTokenRequest struct + Token string + type CheckTokenResponse struct + Code int32 + Msg string + type GetProfileRequest struct + Token string + type GetProfileResponse struct + Code int32 + Msg string + User User + type LoginRequest struct + Password string + Username string + type LoginResponse struct + Code int32 + Msg string + Token string + User *User + type LogoutRequest struct + Token string + type LogoutResponse struct + Code int32 + Msg string + type RegisterRequest struct + Password string + Username string + type RegisterResponse struct + Code int32 + Msg string + type UpdateProfileRequest struct + ProfilePicture string + Token string + Username string + type UpdateProfileResponse struct + Code int32 + Msg string + type User struct + Id int64 + ProfilePicture string + Username string