natsio/subject/supplier_role.go

16 lines
259 B
Go
Raw Permalink 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 {
Create string
Update string
}{
Create: getRoleValue("create"),
Update: getRoleValue("update"),
}