24 lines
842 B
Go
24 lines
842 B
Go
package subject
|
|
|
|
import "fmt"
|
|
|
|
func getSupplierValue(val string) string {
|
|
return fmt.Sprintf("%s.%s", prefixes.Supplier, val)
|
|
}
|
|
|
|
var Supplier = struct {
|
|
GetListSupplierInfo string
|
|
GetDetailSupplierInfo string
|
|
GetSupplierContractBySupplierID string
|
|
FindAll string
|
|
FindAllOld string
|
|
Count string
|
|
}{
|
|
GetListSupplierInfo: getSupplierValue("get_list_supplier_info"),
|
|
GetDetailSupplierInfo: getSupplierValue("get_detail_supplier_info"),
|
|
GetSupplierContractBySupplierID: getSupplierValue("get_supplier_contract_by_supplier_id"),
|
|
FindAll: getSupplierValue("find_all"),
|
|
FindAllOld: getSupplierValue("find_all_old"),
|
|
Count: getSupplierValue("count"),
|
|
}
|