gds

package
v0.15.62 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDict added in v0.15.0

func CreateDict(dict Dict) error

func DeleteDict added in v0.15.0

func DeleteDict(dictType, val string) error

func Destroy

func Destroy()

func Init

func Init(baseUrl string, timeoutSec time.Duration)

Types

type AreaInfo added in v0.8.11

type AreaInfo struct {
	ID   uint64 `json:"id,omitempty"`
	Name string `json:"name,omitempty"`
}

func GetALlProvince added in v0.8.11

func GetALlProvince() ([]AreaInfo, error)

func GetAreaChildren added in v0.8.11

func GetAreaChildren(parentID int) ([]AreaInfo, error)

type AreaNode added in v0.12.23

type AreaNode struct {
	AreaInfo
	Children []AreaNode `json:"children"`
}

func GetAllArea added in v0.12.23

func GetAllArea() ([]AreaNode, error)

type Dict added in v0.9.17

type Dict struct {
	DictType string `json:"dictType"`
	Value    string `json:"value"`
	Order    int    `json:"order"`
}

func GetDict added in v0.9.17

func GetDict(dictType string) ([]Dict, error)

type DictResult added in v0.15.0

type DictResult struct {
	Info       []Dict `json:"dict"`
	TotalCount int64  `json:"totalCount"`
	PageNo     int    `json:"pageNo"`
}

func GetDictV2 added in v0.15.0

func GetDictV2(dictType string, pageNo, pageSize int) (*DictResult, error)

type GetAllAreaResponse added in v0.12.23

type GetAllAreaResponse struct {
	AreaNodes []AreaNode `json:"areaNodes"`
	// contains filtered or unexported fields
}

type GetAreasResponse added in v0.8.11

type GetAreasResponse struct {
	Areas []AreaInfo `json:"areas"`
	// contains filtered or unexported fields
}

type GetDictResponse added in v0.9.17

type GetDictResponse struct {
	Dict []Dict `json:"dict"`
	// contains filtered or unexported fields
}

type GetDictV2Response added in v0.15.0

type GetDictV2Response struct {
	DictResult
	// contains filtered or unexported fields
}

type GetIndustryCategoriesQuery

type GetIndustryCategoriesQuery struct {
	ID         uint64  `form:"id"`
	IndustryID string  `form:"industryId"`
	Name       string  `form:"name"`
	ParentID   *uint64 `form:"parentId"`
	PageNo     int     `form:"pageNo"`
	PageSize   int     `form:"pageSize"`
}

type GetIndustryCategoriesResponse

type GetIndustryCategoriesResponse struct {
	PageNo     int                    `json:"pageNo" binding:"required"`
	TotalCount int64                  `json:"totalCount" binding:"required"`
	Infos      []IndustryCategoryInfo `json:"infos" binding:"required"`
	// contains filtered or unexported fields
}

type GetLayerIndustryCategoriesQuery

type GetLayerIndustryCategoriesQuery struct {
	ParentID *uint64 `form:"parentId" binding:"required"`
}

type GetLayerIndustryCategoriesResponse

type GetLayerIndustryCategoriesResponse struct {
	Infos []IndustryCategoryInfo `json:"infos" binding:"required"`
	// contains filtered or unexported fields
}

type IndustryCategoryInfo

type IndustryCategoryInfo struct {
	ID         uint64 `json:"id" binding:"required"`
	IndustryID string `json:"industryId" binding:"required"`
	Name       string `json:"name" binding:"required"`
	ParentID   uint64 `json:"parentId"`
}

func GetIndustryCategories

func GetIndustryCategories(params *GetIndustryCategoriesQuery) ([]IndustryCategoryInfo, int64, error)

func GetLayerIndustryCategories

func GetLayerIndustryCategories(params *GetLayerIndustryCategoriesQuery) ([]IndustryCategoryInfo, error)

Jump to

Keyboard shortcuts

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