From f62553ea77adeacd3e2ce41ff68c102e8b066ea4 Mon Sep 17 00:00:00 2001
From: wtp <1813748440@qq.com>
Date: Mon, 13 Mar 2023 20:15:33 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8E=A5=E5=8F=A3=E6=A0=87?=
=?UTF-8?q?=E5=87=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../LiveHistoryContactsService.cs | 14 +++++++-------
.../Service/MiniBanner/MiniBannerService.cs | 12 ++++++------
2 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/GDZZ.Application/Service/LiveHistoryContacts/LiveHistoryContactsService.cs b/GDZZ.Application/Service/LiveHistoryContacts/LiveHistoryContactsService.cs
index 7e3ede7..481b729 100644
--- a/GDZZ.Application/Service/LiveHistoryContacts/LiveHistoryContactsService.cs
+++ b/GDZZ.Application/Service/LiveHistoryContacts/LiveHistoryContactsService.cs
@@ -67,7 +67,7 @@ namespace GDZZ.Application
/// 新增联系人
///
///
- [HttpPost("/LiveHistoryContacts/AddLive")]
+ [HttpPost("/Mini/LiveHistoryContacts/AddLive")]
public async Task AddLive(AddLiveHistoryContactsInput input)
{
@@ -81,7 +81,7 @@ namespace GDZZ.Application
/// 修改消息条数
///
///
- [HttpPut("/LiveHistoryContacts/UPLive")]
+ [HttpPut("/Mini/LiveHistoryContacts/UPLive")]
public async Task UPLive(UpdateLiveHistoryContactsInput input)
{
@@ -96,7 +96,7 @@ namespace GDZZ.Application
/// 删除联系人
///
///
- [HttpDelete("/LiveHistoryContacts/DelLive")]
+ [HttpDelete("/Mini/LiveHistoryContacts/DelLive")]
public async Task DelLive(long ID)
{
@@ -115,7 +115,7 @@ namespace GDZZ.Application
///
///
///
- [HttpGet("/LiveHistoryContacts/list")]
+ [HttpGet("/Mini/LiveHistoryContacts/list")]
public async Task> List()
{
@@ -167,7 +167,7 @@ namespace GDZZ.Application
/// 获取聊天详情
///
///
- [HttpGet("/LiveHistoryContacts/GetMessageLists")]
+ [HttpGet("/Mini/LiveHistoryContacts/GetMessageLists")]
public async Task> 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
///
///
///
- [HttpPost("/LiveHistoryContacts/addMessage")]
+ [HttpPost("/Mini/LiveHistoryContacts/addMessage")]
public async Task AddMessage(AddLiveMessageInput input)
{
var entity = input.Adapt();
@@ -213,7 +213,7 @@ namespace GDZZ.Application
///
///
///
- [HttpPost("/LiveHistoryContacts/upload")]
+ [HttpPost("/Mini/LiveHistoryContacts/upload")]
public async Task UploadFileDefault(IFormFile file)
{
// 可以读取系统配置来决定将文件存储到什么地方
diff --git a/GDZZ.Application/Service/MiniBanner/MiniBannerService.cs b/GDZZ.Application/Service/MiniBanner/MiniBannerService.cs
index 4d4414a..aca19be 100644
--- a/GDZZ.Application/Service/MiniBanner/MiniBannerService.cs
+++ b/GDZZ.Application/Service/MiniBanner/MiniBannerService.cs
@@ -27,7 +27,7 @@ namespace GDZZ.Application
///
///
///
- [HttpGet("/MiniBanner/page")]
+ [HttpGet("/Mini/BannePpage")]
public async Task Page([FromQuery] MiniBannerInput input)
{
var entities = await _rep.AsQueryable()
@@ -40,7 +40,7 @@ namespace GDZZ.Application
///
///
///
- [HttpPost("/MiniBanner/add")]
+ [HttpPost("/Mini/BannerAdd")]
public async Task Add(AddMiniBannerInput input)
{
var entity = input.Adapt();
@@ -52,7 +52,7 @@ namespace GDZZ.Application
///
///
///
- [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
///
///
///
- [HttpPost("/MiniBanner/edit")]
+ [HttpPost("/Mini/BannerEdit")]
public async Task Update(UpdateMiniBannerInput input)
{
var entity = input.Adapt();
@@ -76,7 +76,7 @@ namespace GDZZ.Application
///
///
///
- [HttpGet("/MiniBanner/detail")]
+ [HttpGet("/Mini/BannerDetail")]
public async Task Get([FromQuery] QueryeMiniBannerInput input)
{
return await _rep.FirstOrDefaultAsync(u => u.Id == input.Id);
@@ -87,7 +87,7 @@ namespace GDZZ.Application
///
///
///
- [HttpGet("/Mini/Banner/list")]
+ [HttpGet("/Mini/GetBannerList")]
public async Task List([FromQuery] MiniBannerInput input)
{
return await _rep.ToListAsync();