goCommon

package module
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2022 License: GPL-3.0 Imports: 5 Imported by: 8

README

goCommon

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Resp

type Resp struct {
	Code     int    `json:"code"`
	HttpCode int    `json:"httpCode""`
	Message  string `json:"message"`
	Data     string `json:"data"`
}

Resp @Description: 统一返回结果

func (*Resp) DataToMap

func (resp *Resp) DataToMap() map[string]interface{}

func (*Resp) ToJson

func (resp *Resp) ToJson() string

ToJson @Description: 返回json @receiver resp @return string

type SkuCode

type SkuCode struct {
	Perfix string `json:"perfix"`
}

func (*SkuCode) Create

func (skuCode *SkuCode) Create() string

Jump to

Keyboard shortcuts

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