natsio/subject/supplier_user.go

28 lines
725 B
Go
Raw 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
CreateOwner string
UpdateOwner string
CreateStaff string
UpdateStaff string
UpdateStatus string
ResetPassword string
2022-12-29 06:49:04 +00:00
CheckToken string
2022-10-20 07:32:32 +00:00
}{
2022-10-28 02:31:39 +00:00
// Users
CreateOwner: getSupplierUserValue("create_owner"),
UpdateOwner: getSupplierUserValue("update_owner"),
CreateStaff: getSupplierUserValue("create_staff"),
UpdateStaff: getSupplierUserValue("update_staff"),
UpdateStatus: getSupplierUserValue("update_status"),
ResetPassword: getSupplierUserValue("reset_password"),
2022-12-29 06:49:04 +00:00
CheckToken: getSupplierUserValue("check_token"),
2022-10-20 07:32:32 +00:00
}