natsio/subject/supplier_user.go

20 lines
586 B
Go
Raw Normal View History

2022-10-20 07:32:32 +00:00
package subject
import "fmt"
func getAuthSMSValue(val string) string {
2022-10-25 08:27:05 +00:00
return fmt.Sprintf("%s.%s", prefixes.SupplierUser, val)
2022-10-20 07:32:32 +00:00
}
2022-10-25 08:27:05 +00:00
var SupplierUser = struct {
2022-10-27 02:09:48 +00:00
CreateSupplierOwnerUser string
UpdateSupplierOwnerUser string
CreateSupplierStaffUser string
UpdateSupplierStaffUser string
2022-10-20 07:32:32 +00:00
}{
2022-10-27 02:09:48 +00:00
CreateSupplierOwnerUser: getAuthSMSValue("create_supplier_owner_user"),
UpdateSupplierOwnerUser: getAuthSMSValue("update_supplier_owner_user"),
CreateSupplierStaffUser: getAuthSMSValue("create_supplier_staff_user"),
UpdateSupplierStaffUser: getAuthSMSValue("update_supplier_staff_user"),
2022-10-20 07:32:32 +00:00
}