common

package
v2.0.0-...-8f2ac71 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2022 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	REMOTE_ADRESS_SERVICE       = "/address"
	REMOTE_ADRESS_SERVICE_ERROR = "remote address service error"
	ADRESS_JSON_UNMARSHAL_ERROR = "Model dict type json unmarshal error"
)

Variables

This section is empty.

Functions

func CheckAppID

func CheckAppID(appID string, token string) (res bool)

func FindAddress

func FindAddress(levelOneId uint64, levelTwoId uint64, levelThreeId uint64) (res string)

func FindAddressWithClientId

func FindAddressWithClientId(clientId string, levelOneId uint64, levelTwoId uint64, levelThreeId uint64) (res string)

func FindArea

func FindArea(parentId uint64) (res []common.Address)

func FindProvince

func FindProvince() (res []common.Address)

func FindSubRelationByUnionID

func FindSubRelationByUnionID(id string) (resp common.SubRelation, err error)

func FindTown

func FindTown(parentId uint64) (res []common.Address)

func GetClientDataSources

func GetClientDataSources() (map[string]DataSourceProperty, error)

func GetClientUserByMobileOrEmail

func GetClientUserByMobileOrEmail(account string) (user common.ClientUser, err error)

func GetHealth

func GetHealth() error

func QueryHolidayListBy

func QueryHolidayListBy(startYear, startMonth, startDay, endYear, endMonth, endDay int) (
	resp []common.QueryHolidayByItem, err error,
)

Types

type DataSourceProperty

type DataSourceProperty struct {
	PollName        string `json:"pollName"`
	DriverClassName string `json:"driverClassName"`
	Url             string `json:"url"`
	UserName        string `json:"username"`
	Password        string `json:"password"`
}

Jump to

Keyboard shortcuts

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