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-09-07 07:01:29 +00:00
|
|
|
GetLocationByCode string
|
|
|
|
GetProvincesByCodes string
|
|
|
|
GetDistrictsByCodes string
|
|
|
|
GetWardsByCodes string
|
2022-08-26 10:36:02 +00:00
|
|
|
}{
|
2022-09-07 07:01:29 +00:00
|
|
|
GetLocationByCode: getLocationValue("get_location_warehouse"),
|
2022-09-07 07:10:23 +00:00
|
|
|
GetProvincesByCodes: getLocationValue("get_provinces_by_codes"),
|
|
|
|
GetDistrictsByCodes: getLocationValue("get_districts_by_codes"),
|
|
|
|
GetWardsByCodes: getLocationValue("get_wards_by_codes"),
|
2022-08-26 10:36:02 +00:00
|
|
|
}
|