Versions in this module Expand all Collapse all v1 v1.0.2 Sep 21, 2024 v1.0.1 Sep 14, 2024 Changes in this version + const Mysql + const Mysql_ExternalServiceError + const Mysql_InternalServiceError + const Mysql_InvalidInput + const Mysql_ResourceNotFound + const Mysql_Unknown + const Success + const UnknownStatusCode + 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 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)