Documentation ¶
Index ¶
- Variables
- func BuildAndGetNameTagId(tx *sqlx.Tx, valueOfNameTag string) int16
- func BuildGroupTags(tx *sqlx.Tx, groupTags []string, handleFunc ProcessGroupTagFunc)
- func CheckHierarchyForCity(provinceId int16, cityId int16) error
- func GetCitiesByName(name string) []*city1view
- func GetCitiesInProvinceByName(pvId int, name string) []*owlModel.City2
- func GetCity2ById(cityId int16) *owlModel.City2
- func GetCity2sByName(prefixName string) []*owlModel.City2
- func GetCityById(cityId int16) *city1view
- func GetGroupTagById(id int32) *owlModel.GroupTag
- func GetISPsByName(name string) []*owlModel.Isp
- func GetIspById(ispId int16) *owlModel.Isp
- func GetNameTagById(id int16) *owlModel.NameTag
- func GetProvinceById(provinceId int16) *owlModel.Province
- func GetProvincesByName(name string) []*owlModel.Province
- func GetSyntaxOfOrderByGroupTags(entity *model.OrderByEntity) string
- func ListGroupTags(name string, p *model.Paging) []*owlModel.GroupTag
- func ListNameTags(value string, p *model.Paging) []*owlModel.NameTag
- type ErrNotInSameHierarchy
- type ProcessGroupTagFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var DbFacade *f.DbFacade
Functions ¶
func BuildGroupTags ¶
func BuildGroupTags(tx *sqlx.Tx, groupTags []string, handleFunc ProcessGroupTagFunc)
func CheckHierarchyForCity ¶
Checks if the hierarchy for province and city are in the same administrative region
func GetCitiesByName ¶
func GetCitiesByName(name string) []*city1view
func GetCity2ById ¶
func GetCity2sByName ¶
func GetCityById ¶
func GetCityById(cityId int16) *city1view
func GetGroupTagById ¶
func GetISPsByName ¶
func GetIspById ¶
func GetNameTagById ¶
func GetProvinceById ¶
func GetProvincesByName ¶
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
Types ¶
type ErrNotInSameHierarchy ¶
type ErrNotInSameHierarchy struct {
// contains filtered or unexported fields
}
func (ErrNotInSameHierarchy) Error ¶
func (err ErrNotInSameHierarchy) Error() string
type ProcessGroupTagFunc ¶
Click to show internal directories.
Click to hide internal directories.