natsio/subject/location.go

48 lines
2.1 KiB
Go
Raw Normal View History

2022-08-26 10:15:49 +00:00
package subject
2022-08-26 10:36:02 +00:00
import "fmt"
func getLocationValue(val string) string {
return fmt.Sprintf("%s.%s", prefixes.Location, val)
}
var Location = struct {
2022-10-27 07:30:40 +00:00
GetLocationByCode string
2022-11-21 08:59:56 +00:00
GetLocationByCodeNew string
2022-10-27 07:30:40 +00:00
GetProvincesByCodes string
2022-11-21 08:59:56 +00:00
GetProvincesByCodesNew string
2022-10-27 07:30:40 +00:00
GetDistrictsByCodes string
2022-11-21 08:59:56 +00:00
GetDistrictsByCodesNew string
2022-10-27 07:30:40 +00:00
GetWardsByCodes string
2022-11-21 08:59:56 +00:00
GetWardsByCodesNew string
2022-10-27 07:30:40 +00:00
GetProvinceByCondition string
GetProvincesByCondition string
GetDistrictByCondition string
GetDistrictsByCondition string
GetWardByCondition string
GetWardsByCondition string
CountProvinceByCondition string
CountDistrictByCondition string
CountWardByCondition string
ProvinceDistinctWithField string
2022-08-26 10:36:02 +00:00
}{
2022-10-27 07:30:40 +00:00
GetLocationByCode: getLocationValue("get_location_warehouse"),
2022-11-21 08:59:56 +00:00
GetLocationByCodeNew: getLocationValue("get_location_warehouse_new"),
2022-10-27 07:30:40 +00:00
GetProvincesByCodes: getLocationValue("get_provinces_by_codes"),
2022-11-21 08:59:56 +00:00
GetProvincesByCodesNew: getLocationValue("get_provinces_by_codes_new"),
2022-10-27 07:30:40 +00:00
GetDistrictsByCodes: getLocationValue("get_districts_by_codes"),
2022-11-21 08:59:56 +00:00
GetDistrictsByCodesNew: getLocationValue("get_districts_by_codes_new"),
2022-10-27 07:30:40 +00:00
GetWardsByCodes: getLocationValue("get_wards_by_codes"),
2022-11-21 08:59:56 +00:00
GetWardsByCodesNew: getLocationValue("get_wards_by_codes_new"),
2022-10-27 07:30:40 +00:00
GetProvinceByCondition: getLocationValue("get_province_by_condition"),
GetProvincesByCondition: getLocationValue("get_provinces_by_condition"),
GetDistrictByCondition: getLocationValue("get_district_by_condition"),
GetDistrictsByCondition: getLocationValue("get_districts_byCondition"),
GetWardByCondition: getLocationValue("get_ward_by_condition"),
GetWardsByCondition: getLocationValue("get_wards_by_condition"),
CountProvinceByCondition: getLocationValue("count_province_by_condition"),
CountDistrictByCondition: getLocationValue("count_district_by_condition"),
CountWardByCondition: getLocationValue("count_ward_by_condition"),
ProvinceDistinctWithField: getLocationValue("province_distinct_with_field"),
2022-08-26 10:36:02 +00:00
}