public override Task <ResponseResult> Plus(RequestPara request, ServerCallContext context)
        {
            int            iResult        = request.ILeft + request.IRight;
            ResponseResult responseResult = new ResponseResult()
            {
                Result  = iResult,
                Message = "Success"
            };

            return(Task.FromResult(responseResult));
        }
示例#2
0
        public HttpResponseMessage Approval([FromBody] JObject jdata)
        {
            // RequestPara model = PM.Common.Extension.JsonEx.JsonToObj<RequestPara>(para);
            string      modelstr = jdata["para"] == null ? "" : jdata["para"].ToString();
            RequestPara model    = JsonEx.JsonToObj <RequestPara>(modelstr);
            //string UserId=
            var ret = PM.DataAccess.DbContext.Db.Context.From <TbUser>()
                      .Select(TbUser._.UserId).Where(p => p.UserCode == model.UserCode).First();
            var data = _flowlogic.Approval(model.FlowCode, model.performState, model.performOpinions, model.FlowPerformID, model.flowNodeCode, ret.UserId, model.FlowTitle, model.FreeNodeUser);

            return(data.ToJsonApi());
        }
示例#3
0
 public override Task <ResponseResult> Plus(RequestPara request, ServerCallContext context)
 {
     return(Task.FromResult(new ResponseResult {
         Result = request.ILeft + request.IRight, Message = "Sucess"
     }));
 }