regionconfigs

package
v1.3.9 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: BSD-3-Clause Imports: 0 Imported by: 1

Documentation

Index

Constants

View Source
const (
	RegionChinaId         RegionId = 1
	RegionChinaIdHK       RegionId = 261
	RegionChinaIdTW       RegionId = 262
	RegionChinaIdMO       RegionId = 263
	RegionChinaIdMainland RegionId = 264

	RegionChinaProvinceIdHK RegionProvinceId = 32
	RegionChinaProvinceIdTW RegionProvinceId = 34
	RegionChinaProvinceIdMO RegionProvinceId = 33
)

Variables

This section is empty.

Functions

func CheckRegionIsInGreaterChina

func CheckRegionIsInGreaterChina(regionId RegionId) bool

func CheckRegionProvinceIsInChinaMainland

func CheckRegionProvinceIsInChinaMainland(regionProvinceId RegionProvinceId) bool

func MatchUserRegion added in v1.2.9

func MatchUserRegion(userCountryId int64, userProvinceId int64, regionId int64) bool

Types

type RegionId

type RegionId = int64

func FindAllGreaterChinaSubRegionIds

func FindAllGreaterChinaSubRegionIds() []RegionId

type RegionProvinceId

type RegionProvinceId = int64

Jump to

Keyboard shortcuts

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