using Bunny.Dao.Models.System;
using Bunny.Dao.Result;
using Bunny.Service.IService;
using Microsoft.AspNetCore.Mvc;
namespace Bunny.WebApi.Controllers;
[Route("/api/[controller]")]
public class BlogController : ControllerBase
{
private readonly IBlogService _blogService;
public BlogController(IBlogService blogService)
{
_blogService = blogService;
}
///
/// 添加Blog
///
///
///
[HttpGet("AddBlog")]
public Result AddBlog(Blog dto)
{
_blogService.AddBlog(dto);
return Result.Success();
}
}