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 07:13:22 +00:00
|
|
|
LoginUser string
|
|
|
|
Logout string
|
|
|
|
GetListUser string
|
|
|
|
DetailUser string
|
2022-12-29 06:58:16 +00:00
|
|
|
CreateOwner string
|
|
|
|
UpdateOwner string
|
|
|
|
CreateStaff string
|
|
|
|
UpdateStaff string
|
|
|
|
UpdateStatus string
|
|
|
|
ResetPassword string
|
2022-12-29 07:13:22 +00:00
|
|
|
ChangePassword string
|
2022-12-29 06:58:16 +00:00
|
|
|
CheckTokenSupplierUser string
|
2022-10-20 07:32:32 +00:00
|
|
|
}{
|
2022-10-28 02:31:39 +00:00
|
|
|
// Users
|
2022-12-29 07:13:22 +00:00
|
|
|
LoginUser: getSupplierUserValue("login_user"),
|
|
|
|
Logout: getSupplierUserValue("logout"),
|
|
|
|
GetListUser: getSupplierUserValue("get_list_user"),
|
|
|
|
DetailUser: getSupplierUserValue("detail_user"),
|
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"),
|
2022-12-29 07:13:22 +00:00
|
|
|
ChangePassword: getSupplierUserValue("change_password"),
|
2022-12-29 06:58:16 +00:00
|
|
|
CheckTokenSupplierUser: getSupplierUserValue("check_token_supplier_user"),
|
2022-10-20 07:32:32 +00:00
|
|
|
}
|