fix
This commit is contained in:
commit
b0fa596ac2
|
@ -242,8 +242,8 @@ func (s SupplierUser) ChangePassword(p model.ChangePasswordRequest) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// CheckTokenSupplier ...
|
// CheckTokenSupplierUser ...
|
||||||
func (s SupplierUser) CheckTokenSupplier(p model.CheckTokenSupplierUserPayload) (*model.ResponseCheckTokenSupplierUser, error) {
|
func (s SupplierUser) CheckTokenSupplierUser(p model.CheckTokenSupplierUserPayload) (*model.ResponseCheckTokenSupplierUser, error) {
|
||||||
msg, err := natsio.GetServer().Request(subject.SupplierUser.CheckTokenSupplierUser, toBytes(p))
|
msg, err := natsio.GetServer().Request(subject.SupplierUser.CheckTokenSupplierUser, toBytes(p))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|
|
@ -8,32 +8,30 @@ func getSupplierUserValue(val string) string {
|
||||||
|
|
||||||
var SupplierUser = struct {
|
var SupplierUser = struct {
|
||||||
// Users
|
// Users
|
||||||
LoginUser string
|
LoginUser string
|
||||||
Logout string
|
Logout string
|
||||||
GetListUser string
|
GetListUser string
|
||||||
DetailUser string
|
DetailUser string
|
||||||
CreateOwner string
|
CreateOwner string
|
||||||
UpdateOwner string
|
UpdateOwner string
|
||||||
CreateStaff string
|
CreateStaff string
|
||||||
UpdateStaff string
|
UpdateStaff string
|
||||||
UpdateStatus string
|
UpdateStatus string
|
||||||
ResetPassword string
|
ResetPassword string
|
||||||
ChangePassword string
|
ChangePassword string
|
||||||
CheckToken string
|
|
||||||
CheckTokenSupplierUser string
|
CheckTokenSupplierUser string
|
||||||
}{
|
}{
|
||||||
// Users
|
// Users
|
||||||
LoginUser: getSupplierUserValue("login_user"),
|
LoginUser: getSupplierUserValue("login_user"),
|
||||||
Logout: getSupplierUserValue("logout"),
|
Logout: getSupplierUserValue("logout"),
|
||||||
GetListUser: getSupplierUserValue("get_list_user"),
|
GetListUser: getSupplierUserValue("get_list_user"),
|
||||||
DetailUser: getSupplierUserValue("detail_user"),
|
DetailUser: getSupplierUserValue("detail_user"),
|
||||||
CreateOwner: getSupplierUserValue("create_owner"),
|
CreateOwner: getSupplierUserValue("create_owner"),
|
||||||
UpdateOwner: getSupplierUserValue("update_owner"),
|
UpdateOwner: getSupplierUserValue("update_owner"),
|
||||||
CreateStaff: getSupplierUserValue("create_staff"),
|
CreateStaff: getSupplierUserValue("create_staff"),
|
||||||
UpdateStaff: getSupplierUserValue("update_staff"),
|
UpdateStaff: getSupplierUserValue("update_staff"),
|
||||||
UpdateStatus: getSupplierUserValue("update_status"),
|
UpdateStatus: getSupplierUserValue("update_status"),
|
||||||
ResetPassword: getSupplierUserValue("reset_password"),
|
ResetPassword: getSupplierUserValue("reset_password"),
|
||||||
ChangePassword: getSupplierUserValue("change_password"),
|
ChangePassword: getSupplierUserValue("change_password"),
|
||||||
CheckToken: getSupplierUserValue("check_token"),
|
|
||||||
CheckTokenSupplierUser: getSupplierUserValue("check_token_supplier_user"),
|
CheckTokenSupplierUser: getSupplierUserValue("check_token_supplier_user"),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue