gds

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: GPL-3.0 Imports: 5 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 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