ZhouliProject/Zhouli.Bms/Areas/BlogManager/Controllers/FriendshipLinkController.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Zhouli.BLL;
using Zhouli.BLL.Interface;
using Zhouli.Common;
using Zhouli.Common.ResultModel;
using Zhouli.DbEntity.Models;
using Zhouli.DI;
using Zhouli.Dto.ModelDto;
using ZhouliSystem.Data;
using ZhouliSystem.Filters;
using ZhouliSystem.Models;
namespace Zhouli.Bms.Areas.BlogManager.Controllers
{
[VerificationLogin]
[Area("Blog")]
public class FriendshipLinkController : Controller
{
private readonly IBlogFriendshipLinkBLL _blogFriendshipLinkBLL;
private readonly UserAccount _userAccount;
public FriendshipLinkController(IBlogFriendshipLinkBLL blogFriendshipLinkBLL, UserAccount userAccount)
{
_blogFriendshipLinkBLL = blogFriendshipLinkBLL;
_userAccount = userAccount;
}
public IActionResult Index()
{
return View();
}
public IActionResult FriendshipLinkAdd()
{
return View();
}
#region 获取友情链接分页数据
/// <summary>
/// 获取友情链接分页数据
/// </summary>
/// <param name="page"></param>
/// <param name="limit"></param>
/// <param name="searchstr"></param>
/// <returns></returns>
public IActionResult GetFriendshipLinkList(string page, string limit, string searchstr)
{
var messageModel = _blogFriendshipLinkBLL
.GetFriendshipLinkList(page, limit, searchstr);
return Ok(new
{
code = 0,
msg = "获取成功",
count = messageModel.Data.RowCount,
data = messageModel.Data.Data
});
}
#endregion
#region 添加友情链接
后面还有 49 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。