修改接口标准

development
温天培 2 years ago
parent 358cae36f0
commit f62553ea77

@ -67,7 +67,7 @@ namespace GDZZ.Application
/// 新增联系人
/// </summary>
/// <returns></returns>
[HttpPost("/LiveHistoryContacts/AddLive")]
[HttpPost("/Mini/LiveHistoryContacts/AddLive")]
public async Task AddLive(AddLiveHistoryContactsInput input)
{
@ -81,7 +81,7 @@ namespace GDZZ.Application
/// 修改消息条数
/// </summary>
/// <returns></returns>
[HttpPut("/LiveHistoryContacts/UPLive")]
[HttpPut("/Mini/LiveHistoryContacts/UPLive")]
public async Task UPLive(UpdateLiveHistoryContactsInput input)
{
@ -96,7 +96,7 @@ namespace GDZZ.Application
/// 删除联系人
/// </summary>
/// <returns></returns>
[HttpDelete("/LiveHistoryContacts/DelLive")]
[HttpDelete("/Mini/LiveHistoryContacts/DelLive")]
public async Task DelLive(long ID)
{
@ -115,7 +115,7 @@ namespace GDZZ.Application
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpGet("/LiveHistoryContacts/list")]
[HttpGet("/Mini/LiveHistoryContacts/list")]
public async Task<List<LiveHistoryLists>> List()
{
@ -167,7 +167,7 @@ namespace GDZZ.Application
/// 获取聊天详情
/// </summary>
/// <returns></returns>
[HttpGet("/LiveHistoryContacts/GetMessageLists")]
[HttpGet("/Mini/LiveHistoryContacts/GetMessageLists")]
public async Task<List<LiveMessageList>> GetMessageLists(long OtherUserID)
{
var res = await this.liveMessageRep.Where(x => x.CreatedUserId == UserManager.UserId && x.OtherUserID == OtherUserID).ToListAsync();
@ -179,7 +179,7 @@ namespace GDZZ.Application
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpPost("/LiveHistoryContacts/addMessage")]
[HttpPost("/Mini/LiveHistoryContacts/addMessage")]
public async Task AddMessage(AddLiveMessageInput input)
{
var entity = input.Adapt<LiveMessage>();
@ -213,7 +213,7 @@ namespace GDZZ.Application
/// </summary>
/// <param name="file"></param>
/// <returns></returns>
[HttpPost("/LiveHistoryContacts/upload")]
[HttpPost("/Mini/LiveHistoryContacts/upload")]
public async Task<LiveFileOutput> UploadFileDefault(IFormFile file)
{
// 可以读取系统配置来决定将文件存储到什么地方

@ -27,7 +27,7 @@ namespace GDZZ.Application
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpGet("/MiniBanner/page")]
[HttpGet("/Mini/BannePpage")]
public async Task<dynamic> Page([FromQuery] MiniBannerInput input)
{
var entities = await _rep.AsQueryable()
@ -40,7 +40,7 @@ namespace GDZZ.Application
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpPost("/MiniBanner/add")]
[HttpPost("/Mini/BannerAdd")]
public async Task Add(AddMiniBannerInput input)
{
var entity = input.Adapt<MiniBanner>();
@ -52,7 +52,7 @@ namespace GDZZ.Application
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpPost("/MiniBanner/delete")]
[HttpPost("/Mini/BannerDelete")]
public async Task Delete(DeleteMiniBannerInput input)
{
var entity = await _rep.FirstOrDefaultAsync(u => u.Id == input.Id);
@ -64,7 +64,7 @@ namespace GDZZ.Application
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpPost("/MiniBanner/edit")]
[HttpPost("/Mini/BannerEdit")]
public async Task Update(UpdateMiniBannerInput input)
{
var entity = input.Adapt<MiniBanner>();
@ -76,7 +76,7 @@ namespace GDZZ.Application
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpGet("/MiniBanner/detail")]
[HttpGet("/Mini/BannerDetail")]
public async Task<MiniBanner> Get([FromQuery] QueryeMiniBannerInput input)
{
return await _rep.FirstOrDefaultAsync(u => u.Id == input.Id);
@ -87,7 +87,7 @@ namespace GDZZ.Application
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpGet("/Mini/Banner/list")]
[HttpGet("/Mini/GetBannerList")]
public async Task<dynamic> List([FromQuery] MiniBannerInput input)
{
return await _rep.ToListAsync();

Loading…
Cancel
Save