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-11-08 11:02:42 +00:00
|
|
|
LoginUser string
|
|
|
|
Logout string
|
|
|
|
GetListUser string
|
|
|
|
DetailUser string
|
|
|
|
CreateOwner string
|
|
|
|
UpdateOwner string
|
|
|
|
CreateStaff string
|
|
|
|
UpdateStaff string
|
|
|
|
UpdateStatus string
|
|
|
|
ResetPassword string
|
|
|
|
ChangePassword 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
|
2022-11-08 11:02:42 +00:00
|
|
|
LoginUser: getSupplierUserValue("login_user"),
|
|
|
|
Logout: getSupplierUserValue("logout"),
|
|
|
|
GetListUser: getSupplierUserValue("get_list_user"),
|
|
|
|
DetailUser: getSupplierUserValue("detail_user"),
|
|
|
|
CreateOwner: getSupplierUserValue("create_owner"),
|
|
|
|
UpdateOwner: getSupplierUserValue("update_owner"),
|
|
|
|
CreateStaff: getSupplierUserValue("create_staff"),
|
|
|
|
UpdateStaff: getSupplierUserValue("update_staff"),
|
|
|
|
UpdateStatus: getSupplierUserValue("update_status"),
|
|
|
|
ResetPassword: getSupplierUserValue("reset_password"),
|
|
|
|
ChangePassword: getSupplierUserValue("change_password"),
|
2022-12-29 06:49:04 +00:00
|
|
|
CheckToken: getSupplierUserValue("check_token"),
|
2022-10-20 07:32:32 +00:00
|
|
|
}
|