Documentation ¶
Index ¶
- type CoreError
- type Dto
- func (d Dto) ContainKeys(key string) bool
- func (d Dto) Get(key string, defaultValue interface{}) interface{}
- func (d Dto) GetBool(key string, defaultValue bool) bool
- func (d Dto) GetDecimal(key string, defaultValue decimal.Decimal) decimal.Decimal
- func (d Dto) GetDto(key string, defaultValue Dto) Dto
- func (d Dto) GetInt(key string, defaultValue int) int
- func (d Dto) GetInt64(key string, defaultValue int64) int64
- func (d Dto) GetSlice(key string, defaultValue []interface{}) []interface{}
- func (d Dto) GetSliceDto(key string, defaultValue []Dto) []Dto
- func (d Dto) GetString(key, defaultValue string) string
- func (d Dto) Put(key string, value interface{}) Dto
- func (d Dto) ToJsonString() string
- type OutgoingApi
- type OutgoingApiResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CoreError ¶ added in v0.1.2
type CoreError struct { ErrorCode string ErrorMessage string ErrorFullMessage string ErrorArgs []interface{} }
func NewCoreError ¶ added in v0.1.2
type Dto ¶ added in v0.1.2
type Dto map[string]interface{}
func NewOrDefault ¶ added in v0.1.2
func NewOrEmpty ¶ added in v0.1.2
func NewOrEmpty(source interface{}) Dto
func (Dto) ContainKeys ¶ added in v0.1.2
func (Dto) GetDecimal ¶ added in v0.1.2
func (Dto) GetSliceDto ¶ added in v0.1.2
func (Dto) ToJsonString ¶ added in v0.1.2
type OutgoingApi ¶ added in v0.1.2
type OutgoingApi struct {
Result OutgoingApiResult `json:"result"`
}
type OutgoingApiResult ¶ added in v0.1.2
type OutgoingApiResult struct { Status string `json:"status"` ErrorCode string `json:"errorCode,omitempty"` ErrorMsg string `json:"errorMsg,omitempty"` ErrorFullMsg string `json:"errorFullMsg,omitempty"` ErrorArgs []interface{} `json:"errorArgs,omitempty"` Payload interface{} `json:"payload,omitempty"` }
Click to show internal directories.
Click to hide internal directories.