16 lines
259 B
Go
16 lines
259 B
Go
|
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"),
|
||
|
}
|