修改接口标准

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

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

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

Loading…
Cancel
Save