using New_College.Model;
using New_College.Model.Models;
using New_College.Model.ViewModels;
using System.ComponentModel.DataAnnotations;
using System.Threading.Tasks;
using WebApiClient;
using WebApiClient.Attributes;
namespace New_College.Common.WebApiClients.HttpApis
{
///
/// 博客管理
///
[TraceFilter]
public interface IBlogApi : IHttpApi
{
///
/// 获取博客列表【无权限】
///
///
///
///
///
/// Success
[HttpGet("api/Blog")]
Task>> BlogAsync(int? id, int page, string bcategory, string key);
///
/// 添加博客【无权限】
///
///
/// Success
[HttpPost("api/Blog")]
Task> Blog2Async([JsonContent] BlogArticle body);
///
/// 获取博客详情 (Auth)
///
///
/// Success
[HttpGet("api/Blog/{id}")]
Task> Blog3Async([Required] int id);
///
/// apache jemeter 压力测试
/// 更新接口
///
/// Success
[HttpGet("api/Blog/ApacheTestUpdate")]
Task> ApacheTestUpdateAsync();
///
/// 删除博客 (Auth policies: Permission)
///
///
/// Success
[HttpDelete("api/Blog/Delete")]
Task> DeleteAsync(int? id);
///
/// 获取详情【无权限】
///
///
/// Success
[HttpGet("api/Blog/DetailNuxtNoPer")]
Task> DetailNuxtNoPerAsync(int? id);
///
/// 更新博客信息 (Auth)
///
///
/// Success
[HttpPut("api/Blog/Update")]
Task> UpdateAsync([JsonContent] BlogArticle body);
///
/// 获取博客测试信息 v2版本
///
/// Success
[HttpGet("api/V2/Blog/Blogtest")]
Task> BlogtestAsync();
}
}