public ResultMsg Edit(OPC_AuthRole model) { bool result = RestClient.Put("Role/UpdateRole", model); if (result) { return(ResultMsg.Success()); } return(ResultMsg.Failure("更新失败!")); }
public ResultMsg Delete(OPC_AuthRole model) { bool result = RestClient.Put("Role/DeleteRole", model.Id); if (result) { return(ResultMsg.Success()); } return(ResultMsg.Failure("删除失败!")); }
public ResultMsg Add(OPC_AuthRole model) { bool result = RestClient.Post("Role/AddRole", model); if (result) { return(ResultMsg.Success()); } return(ResultMsg.Failure("添加失败!")); }