Beispiel #1
0
        public ResultMsg Edit(OPC_AuthRole model)
        {
            bool result = RestClient.Put("Role/UpdateRole", model);

            if (result)
            {
                return(ResultMsg.Success());
            }
            return(ResultMsg.Failure("更新失败!"));
        }
Beispiel #2
0
        public ResultMsg Delete(OPC_AuthRole model)
        {
            bool result = RestClient.Put("Role/DeleteRole", model.Id);

            if (result)
            {
                return(ResultMsg.Success());
            }
            return(ResultMsg.Failure("删除失败!"));
        }
Beispiel #3
0
        public ResultMsg Add(OPC_AuthRole model)
        {
            bool result = RestClient.Post("Role/AddRole", model);

            if (result)
            {
                return(ResultMsg.Success());
            }
            return(ResultMsg.Failure("添加失败!"));
        }