|
@@ -37,9 +37,12 @@ namespace GxPress.Api.AppControllers
|
|
|
private readonly ITopicRepository _topicRepository;
|
|
|
private readonly ITopicService _topicService;
|
|
|
private readonly IGroupCategoryRepository groupCategoryRepository;
|
|
|
+ private readonly IUserGroupCategoryRepository userGroupCategoryRepository;
|
|
|
public GroupController(ILogger<GroupController> logger, IGroupRepository groupRepository,
|
|
|
IGroupFolderRepository groupFolderRepository, IGroupUserRepository groupUserRepository,
|
|
|
- ILoginContext loginContext, IGroupService groupService, ITopicRepository topicRepository, ITopicService topicService, IGroupCategoryRepository groupCategoryRepository)
|
|
|
+ ILoginContext loginContext, IGroupService groupService, ITopicRepository topicRepository,
|
|
|
+ ITopicService topicService, IGroupCategoryRepository groupCategoryRepository,
|
|
|
+ IUserGroupCategoryRepository userGroupCategoryRepository)
|
|
|
{
|
|
|
_logger = logger;
|
|
|
_groupFolderRepository = groupFolderRepository;
|
|
@@ -50,6 +53,7 @@ namespace GxPress.Api.AppControllers
|
|
|
_topicRepository = topicRepository;
|
|
|
_topicService = topicService;
|
|
|
this.groupCategoryRepository = groupCategoryRepository;
|
|
|
+ this.userGroupCategoryRepository=userGroupCategoryRepository;
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
@@ -285,5 +289,15 @@ namespace GxPress.Api.AppControllers
|
|
|
{
|
|
|
return await _groupRepository.GetSearchGroupAsync(keyWord, _loginContext.AccountId);
|
|
|
}
|
|
|
+ /// <summary>
|
|
|
+ /// 添加小组广场用户排序
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="request"></param>
|
|
|
+ /// <returns></returns>
|
|
|
+ [HttpPost("user-group-category")]
|
|
|
+ public async Task<bool> InsertAsync(IEnumerable<Entity.tede2.Group.UserGroupCategory> request)
|
|
|
+ {
|
|
|
+ return await userGroupCategoryRepository.InsertAsync(request, _loginContext.AccountId);
|
|
|
+ }
|
|
|
}
|
|
|
}
|