Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoCustomerInResponse = errors.New("Response has no matching customer") ErrMissingField = "Error missing %v" )
Functions ¶
This section is empty.
Types ¶
type GetUserRequest ¶
type GetUserRequest struct {
A string
}
GetUserRequest collects the request parameters for the GetProducts method.
type GetUserResponse ¶
type GetUserResponse struct { V User `json:"v"` Err error `json:"err,omitempty"` // should be intercepted by Failed/errorEncoder }
GetUserResponse collects the response values for the GetProducts method.
type LoginResponse ¶
type LoginResponse struct { User *User `json:"user,omitempty"` Token string `json:"token,omitempty"` Err error `json:"err,omitempty"` }
LoginResponse ..
type RegisterRequest ¶
type RegisterRequest struct { Username string `json:"username"` Password string `json:"password"` Email string `json:"email"` FirstName string `json:"firstName"` LastName string `json:"lastName"` }
RegisterRequest struct
type RegisterUserResponse ¶
RegisterUserResponse ...
type User ¶
type UserAuthority ¶
type UserAuthority int
const ( // UserAuthorityUnknown 未知 UserAuthorityUnknown UserAuthority = iota // UserAuthorityCust 用户 UserAuthorityCust // UserAuthorityTenant 租户/供应商 UserAuthorityTenant // UserAuthorityAdmin 管理员 UserAuthorityAdmin )
type UserStatus ¶
type UserStatus int
const ( // UserStatusUnknown 未知状态 UserStatusUnknown UserStatus = iota // UserStatusCreated 新建正常 UserStatusCreated // UserStatusLocked 锁定 UserStatusLocked )
Click to show internal directories.
Click to hide internal directories.