Example #1
0
        public ActionResult <ReplyModel> Categories([FromBody] PageModel msg)
        {
            ReplyModel             reply      = new ReplyModel();
            PageData <CategoryDto> categories = CategoryDto.GetList(_categoryQuery, msg);

            if (categories.Data.Any())
            {
                reply.Status = "002";
                reply.Msg    = "获取数成功";
                reply.Data   = categories;
            }
            else
            {
                reply.Msg = "没有数据了";
            }
            return(reply);
        }