industry

package
v0.0.0-...-f32fcc8 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SetIndustryUrl = "https://api.weixin.qq.com/cgi-bin/template/api_set_industry?access_token=%s"
	GetIndustryUrl = "https://api.weixin.qq.com/cgi-bin/template/get_industry?access_token=%s"
)

Variables

This section is empty.

Functions

func SetIndustry

func SetIndustry(accessToken string, id1, id2 int) error

Types

type IndustryInfo

type IndustryInfo struct {
	PrimaryName string
	DuputyName  string
	Code        int
}

func GetIndustryInfo

func GetIndustryInfo(code int) (*IndustryInfo, error)

func GetIndustryInfoByName

func GetIndustryInfoByName(primaryName, duputyName string) (*IndustryInfo, error)

func GetIndustrys

func GetIndustrys() []IndustryInfo

防止第三方修改,返回数据副本

func GetSetIndustry

func GetSetIndustry(accessToken string) ([]*IndustryInfo, error)

第一个元素为第一行业,第二个元素为第二个行业

Jump to

Keyboard shortcuts

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