gds

package
v0.11.7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 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 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 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