package extract

import "regexp"

type Province struct {
	Name    string
	Brief   string
	Cap     string
	Captial *City
}

//市
type City struct {
	Name  string
	Brief string
	P     *Province
}

//区或县
type District struct {
	Name string
	C    *City
}

//街道
type Street struct {
	Name string
	D    *District
}

//村、社区、居委会
type Community struct {
	Name string
	S    *Street
}

//区或县简称对应的全称和市信息
type DistrictSimFull struct {
	SimName  string
	FullName string
	C        *City
}

//邮编
type PostCode struct {
	Code string
	P    string
	C    string
	D    []string
}

//区号
type AreaCode struct {
	Code string
	P    string
	C    []string
}

var AgencyReg = []*regexp.Regexp{
	regexp.MustCompile("(?s)(代理(机构|人|单位|公司)|中标供应商).{0,30}"),
	regexp.MustCompile(".{2,15}((招标)?代理|咨询|政府采购)"),
}

//标准化地域结构体
type S_Province struct {
	P_Name string
}
type S_City struct {
	P_Name string
	C_Name string
}
type S_District struct {
	P_Name string
	C_Name string
	D_Name string
}
