goleafcore

package module
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

README

goleaf-core

Go leaf core

Documentation

Index

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

func NewCoreError(code, message, fullMessage string, args ...interface{}) *CoreError

func (*CoreError) Error added in v0.1.2

func (e *CoreError) Error() string

type Dto added in v0.1.2

type Dto map[string]interface{}

func NewDto added in v0.1.2

func NewDto(source interface{}) (Dto, error)

func NewOrDefault added in v0.1.2

func NewOrDefault(source interface{}, def Dto) Dto

func NewOrEmpty added in v0.1.2

func NewOrEmpty(source interface{}) Dto

func (Dto) ContainKeys added in v0.1.2

func (d Dto) ContainKeys(key string) bool

func (Dto) Get added in v0.1.2

func (d Dto) Get(key string, defaultValue interface{}) interface{}

func (Dto) GetBool added in v0.1.2

func (d Dto) GetBool(key string, defaultValue bool) bool

func (Dto) GetDecimal added in v0.1.2

func (d Dto) GetDecimal(key string, defaultValue decimal.Decimal) decimal.Decimal

func (Dto) GetDto added in v0.1.2

func (d Dto) GetDto(key string, defaultValue Dto) Dto

func (Dto) GetInt added in v0.1.2

func (d Dto) GetInt(key string, defaultValue int) int

func (Dto) GetInt64 added in v0.1.2

func (d Dto) GetInt64(key string, defaultValue int64) int64

func (Dto) GetSlice added in v0.1.2

func (d Dto) GetSlice(key string, defaultValue []interface{}) []interface{}

func (Dto) GetSliceDto added in v0.1.2

func (d Dto) GetSliceDto(key string, defaultValue []Dto) []Dto

func (Dto) GetString added in v0.1.2

func (d Dto) GetString(key, defaultValue string) string

func (Dto) Put added in v0.1.2

func (d Dto) Put(key string, value interface{}) Dto

func (Dto) ToJsonString added in v0.1.2

func (d Dto) ToJsonString() string

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"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL