删除首页角色字段
This commit is contained in:
parent
af016b57e5
commit
9222d5d4f4
|
|
@ -19,17 +19,11 @@ namespace HuanMeng.MiaoYu.Code.Chat
|
|||
/// </summary>
|
||||
public class ChatBLL : MiaoYuBase
|
||||
{
|
||||
|
||||
|
||||
public ChatBLL(IServiceProvider serviceProvider) : base(serviceProvider)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
//public async Task<CharacterInfoDto> GetCharacterInfo()
|
||||
//{
|
||||
|
||||
//}
|
||||
/// <summary>
|
||||
/// 删除聊天记录
|
||||
/// </summary>
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ namespace HuanMeng.MiaoYu.Model.Dto.Home
|
|||
/// <summary>
|
||||
/// 余下聊天次数
|
||||
/// </summary>
|
||||
public int RemainingChatCount { get; set; }
|
||||
//public int RemainingChatCount { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
|||
|
|
@ -34,12 +34,11 @@ namespace HuanMeng.MiaoYu.WebApi.Controllers
|
|||
/// <returns></returns>
|
||||
[HttpGet]
|
||||
[AllowAnonymous]
|
||||
public async Task<BaseResponse<CharacterInfoDto>> GetCharacterInfo()
|
||||
public async Task<BaseResponse<List<CharacterInfoDto>>> GetCharacterInfo()
|
||||
{
|
||||
|
||||
var obj = JsonConvert.DeserializeObject<CharacterInfoDto>("{\"Icon\":\"\",\"Intimacy\":10,\"CharacterId\":2,\"CharacterName\":\"许荷姻\",\"Gender\":1,\"LookCount\":2,\"BgUrl\":\"\",\"Biography\":\"你那商业联姻得来的妻子,原本的天才女孩,聪明伶俐,生的漂亮、端庄,不知贵圈多少人梦寐以求的存在。\",\"Prologue\":\"坐在轮椅上,眼神平静的看着你,语气也同样平静)你回来了。饭菜在桌上,我刚刚热了。(说到这,又垂下眸子道)我还做了碗醒酒汤,记得喝\",\"Label\":[{\"Id\":1,\"Name\":\"美女\"},{\"Id\":2,\"Name\":\"二次元\"}],\"RemainingChatCount\":1}");
|
||||
|
||||
return new BaseResponse<CharacterInfoDto>(ResonseCode.Success, "", obj);
|
||||
var obj = JsonConvert.DeserializeObject<List<CharacterInfoDto>>("[{\"Icon\":\"\",\"Intimacy\":10,\"CharacterId\":2,\"CharacterName\":\"许荷姻\",\"Gender\":1,\"LookCount\":2,\"BgUrl\":\"\",\"Biography\":\"你那商业联姻得来的妻子,原本的天才女孩,聪明伶俐,生的漂亮、端庄,不知贵圈多少人梦寐以求的存在。\",\"Prologue\":\"坐在轮椅上,眼神平静的看着你,语气也同样平静)你回来了。饭菜在桌上,我刚刚热了。(说到这,又垂下眸子道)我还做了碗醒酒汤,记得喝\",\"Label\":[{\"Id\":1,\"Name\":\"美女\"},{\"Id\":2,\"Name\":\"二次元\"}],\"RemainingChatCount\":1}]");
|
||||
return new BaseResponse<List<CharacterInfoDto>>(ResonseCode.Success, "", obj);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user