owl

package
v3.14.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2017 License: Apache-2.0, Apache-2.0 Imports: 12 Imported by: 18

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DbFacade *f.DbFacade

Functions

func BuildAndGetNameTagId

func BuildAndGetNameTagId(tx *sqlx.Tx, valueOfNameTag string) int16

func BuildGroupTags

func BuildGroupTags(tx *sqlx.Tx, groupTags []string, handleFunc ProcessGroupTagFunc)

func CheckHierarchyForCity

func CheckHierarchyForCity(provinceId int16, cityId int16) error

Checks if the hierarchy for province and city are in the same administrative region

func GetCitiesByName

func GetCitiesByName(name string) []*city1view

func GetCitiesInProvinceByName

func GetCitiesInProvinceByName(pvId int, name string) []*owlModel.City2

func GetCity2ById

func GetCity2ById(cityId int16) *owlModel.City2

func GetCity2sByName

func GetCity2sByName(prefixName string) []*owlModel.City2

func GetCityById

func GetCityById(cityId int16) *city1view

func GetGroupTagById

func GetGroupTagById(id int32) *owlModel.GroupTag

func GetISPsByName

func GetISPsByName(name string) []*owlModel.Isp

func GetIspById

func GetIspById(ispId int16) *owlModel.Isp

func GetNameTagById

func GetNameTagById(id int16) *owlModel.NameTag

func GetProvinceById

func GetProvinceById(provinceId int16) *owlModel.Province

func GetProvincesByName

func GetProvincesByName(name string) []*owlModel.Province

func GetSyntaxOfOrderByGroupTags

func GetSyntaxOfOrderByGroupTags(entity *model.OrderByEntity) string

Use the pre-defined column name to generate syntax of "ORDER BY XX"

gt_number - The number of group tags
gt_names - The ordered name of group tags

func ListGroupTags

func ListGroupTags(name string, p *model.Paging) []*owlModel.GroupTag

func ListNameTags

func ListNameTags(value string, p *model.Paging) []*owlModel.NameTag

This function skipes the -1 name tag

Types

type ErrNotInSameHierarchy

type ErrNotInSameHierarchy struct {
	// contains filtered or unexported fields
}

func (ErrNotInSameHierarchy) Error

func (err ErrNotInSameHierarchy) Error() string

type ProcessGroupTagFunc

type ProcessGroupTagFunc func(tx *sqlx.Tx, nameOfGroupTag string)

Jump to

Keyboard shortcuts

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