natsio/subject/supplier_user.go

28 lines
865 B
Go
Raw Permalink Normal View History

2022-10-20 07:32:32 +00:00
package subject
import "fmt"
2022-10-28 02:31:39 +00:00
func getSupplierUserValue(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-28 02:31:39 +00:00
// Users
2022-12-29 06:58:16 +00:00
CreateOwner string
UpdateOwner string
CreateStaff string
UpdateStaff string
UpdateStatus string
ResetPassword string
CheckTokenSupplierUser string
2022-10-20 07:32:32 +00:00
}{
2022-10-28 02:31:39 +00:00
// Users
2022-12-29 06:58:16 +00:00
CreateOwner: getSupplierUserValue("create_owner"),
UpdateOwner: getSupplierUserValue("update_owner"),
CreateStaff: getSupplierUserValue("create_staff"),
UpdateStaff: getSupplierUserValue("update_staff"),
UpdateStatus: getSupplierUserValue("update_status"),
ResetPassword: getSupplierUserValue("reset_password"),
CheckTokenSupplierUser: getSupplierUserValue("check_token_supplier_user"),
2022-10-20 07:32:32 +00:00
}