Versions in this module Expand all Collapse all v0 v0.0.4 Jul 24, 2025 v0.0.2 Jul 23, 2025 Changes in this version + const CreatedSuccess + const DeletedSuccess + const Mysql + const Mysql_ExternalServiceError + const Mysql_InternalServiceError + const Mysql_InvalidInput + const Mysql_ResourceNotFound + const Mysql_Unknown + const Success + const UnknownStatusCode + const UpdatedSuccess + var ErrKeyConflict = errors.New("key conflict") + var ErrKeyOutOfRange = errors.New("key out of range") + func Err(statusCode int) (e error) + func Get(statusCode int) (int, error) + func GetStatusMsg(statusCode int) (s string) + func New(retStatusMap map[int]GroupRetStatusCode) error + func Override(retStatusMap map[int]GroupRetStatusCode) + type BaseRequest struct + BaseScgToken string + BaseSendTime int64 + BaseUrl string + MemberId string + type BaseResponse struct + RetStatus RetStatus + func (b BaseResponse) Error() string + type GameBaseRequest struct + BaseScgToken string + BaseSendTime int64 + BaseUrl string + MemberId string + type GameRetStatus struct + CheckCode int + StatusCode int + StatusMsg string + SystemTime int64 + func CreateGame(statusCode int) (retStatus *GameRetStatus) + type GroupRetStatusCode struct + CheckCode int + StatusMsg string + type RetStatus struct + CheckCode int + StatusCode int + StatusMsg string + SystemTime int64 + func Create(statusCode int) (retStatus *RetStatus) + func CreateSuccess() (retStatus *RetStatus) + func (r RetStatus) Error() string + func (r RetStatus) MarshalJSON() ([]byte, error) + func (retStatus *RetStatus) Err() (e error) + func (retStatus *RetStatus) Is(retStatusCode int) bool + func (retStatus *RetStatus) IsSuccess() bool + func (retStatus *RetStatus) SetSuccess() + func (retStatus *RetStatus) Update(statusCode int)