natsio/subject/supplier_role.go

22 lines
551 B
Go
Raw Normal View History

2022-10-28 02:31:39 +00:00
package subject
import "fmt"
func getRoleValue(val string) string {
return fmt.Sprintf("%s.%s", prefixes.SupplierRole, val)
}
var SupplierRole = struct {
2022-10-31 03:04:13 +00:00
GetList string
Detail string
Create string
Update string
GetListBySupplierID string
2022-10-28 02:31:39 +00:00
}{
2022-10-31 03:04:13 +00:00
GetList: getRoleValue("get_list"),
Detail: getRoleValue("detail"),
Create: getRoleValue("create"),
Update: getRoleValue("update"),
GetListBySupplierID: getRoleValue("get_list_by_supplierId"),
2022-10-28 02:31:39 +00:00
}