55 lines
1.2 KiB
C#
55 lines
1.2 KiB
C#
using Bunny.Dao.Dto.System;
|
|
using Bunny.Dao.Entity.System;
|
|
using Bunny.Dao.Model.Result;
|
|
|
|
namespace Bunny.Service.IService;
|
|
|
|
public interface IBlogService
|
|
{
|
|
/// <summary>
|
|
/// 添加Blog
|
|
/// </summary>
|
|
/// <param name="dto"></param>
|
|
void AddBlog(Blog dto);
|
|
|
|
/// <summary>
|
|
/// 查询BLog
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
List<Blog> QueryBlog();
|
|
|
|
/// <summary>
|
|
/// 更新Blog内容
|
|
/// </summary>
|
|
/// <param name="dto"></param>
|
|
void UpdateBlog(BlogUpdateDto dto);
|
|
|
|
/// <summary>
|
|
/// 删除BLog
|
|
/// </summary>
|
|
/// <param name="id"></param>
|
|
void DeleteBlog(string id);
|
|
|
|
/// <summary>
|
|
/// 批量添加数据
|
|
/// </summary>
|
|
/// <param name="url"></param>
|
|
void AddBatchBlogs(string url);
|
|
|
|
/// <summary>
|
|
/// 批量删除BLog
|
|
/// </summary>
|
|
void DeleteBatchBlogs();
|
|
|
|
/// <summary>
|
|
/// 批量更新_带事务
|
|
/// </summary>
|
|
void UseTransaction();
|
|
|
|
/// <summary>
|
|
/// 分页查询
|
|
/// </summary>
|
|
/// <param name="page"></param>
|
|
/// <param name="limit"></param>
|
|
PageResult<Blog> QueryPage(int page, int limit);
|
|
} |