Master.CanYinWu.Web/Controllers/KeyWordController.cs

(开头部分) 18KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using Master.CanYinWu.BLL;
using Master.CanYinWu.Entity;
using Master.CanYinWu.Utility;
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.OleDb;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading;
using System.Threading.Tasks;
using System.Web;
using System.Web.Mvc;
using Master.CanYinWu.Web.App_Start.Filter;

namespace Master.CanYinWu.Web.Controllers
{
    [LoginCheck]
    public class KeyWordController : Controller
    {
        private KeyWordBLL bll = new KeyWordBLL();
        // GET: KeyWord
        public ActionResult Index()
        {
            return View();
        }
        [HttpGet]
        public async Task<JsonResult> GetKeyWordList(int page, int limit, string key)
        {
            var data = await bll.GetListPage(page, limit, key);
            return Json(new { data = data.Item1, count = data.Item2, code = 0 }, JsonRequestBehavior.AllowGet);
        }
        public async Task<string> DeleteKeyWord(string ids)
        {
            if (string.IsNullOrEmpty(ids))
            {
                throw new ArgumentNullException(nameof(ids));
            }
            if (await bll.DeleteKeyWord(ids)>0)
            {
                if (RedisHelper.ConnRedis())
                {
                    RedisHelper.KeyDelete(RedisFolderHelper.allKeywords);
                }
                return "ok";
            }
            return "no";
        }
        #region 关键字添加及编辑
        public async Task<ActionResult> EditKeyWord(int id = 0)
        {
            if (id == 0)
            {
                ViewData.Model = new KeyWord();
            }
            else
            {
                var model = await bll.GetModel(id);
后面还有 414 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。