natsio/subject/location.go

20 lines
534 B
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-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"),
GetProvincesByCodes: getLocationValue("get_provinces_warehouse"),
GetDistrictsByCodes: getLocationValue("get_districts_warehouse"),
GetWardsByCodes: getLocationValue("get_wards_warehouse"),
2022-08-26 10:36:02 +00:00
}