xiaoyong931011
2023-10-17 58b489d68754d2d67354d0c86409666ddc5ca28d
src/main/java/cc/mrbird/febs/mall/controller/AdminChatController.java
@@ -50,6 +50,29 @@
     * @param userId
     * @return
     */
    @GetMapping("openCreateGroup/{userId}")
    @ControllerEndpoint(operation = "会员列表---开启", exceptionMessage = "操作失败")
    public FebsResponse openCreateGroup(@NotNull(message = "{required}") @PathVariable String userId) {
        return iAdminChatService.openCreateGroup(userId);
    }
    /**
     * 用户列表---关闭
     *
     * @param userId
     * @return
     */
    @GetMapping("closeCreateGroup/{userId}")
    @ControllerEndpoint(operation = "会员列表---关闭", exceptionMessage = "操作失败")
    public FebsResponse closeCreateGroup(@NotNull(message = "{required}") @PathVariable String userId) {
        return iAdminChatService.closeCreateGroup(userId);
    }
    /**
     * 用户列表---开启
     *
     * @param userId
     * @return
     */
    @GetMapping("openModelType/{userId}")
    @ControllerEndpoint(operation = "会员列表---开启", exceptionMessage = "操作失败")
    public FebsResponse openModelType(@NotNull(message = "{required}") @PathVariable String userId) {
@@ -197,6 +220,29 @@
     * @param id
     * @return
     */
    @GetMapping("openSwitchAutoSend/{id}")
    @ControllerEndpoint(operation = "会员列表---开启", exceptionMessage = "操作失败")
    public FebsResponse openSwitchAutoSend(@NotNull(message = "{required}") @PathVariable String id) {
        return iAdminChatService.openSwitchAutoSend(id);
    }
    /**
     * 使用机器人---关闭
     *
     * @param id
     * @return
     */
    @GetMapping("closeSwitchAutoSend/{id}")
    @ControllerEndpoint(operation = "会员列表---关闭", exceptionMessage = "操作失败")
    public FebsResponse closeSwitchAutoSend(@NotNull(message = "{required}") @PathVariable String id) {
        return iAdminChatService.closeSwitchAutoSend(id);
    }
    /**
     * 使用机器人---开启
     *
     * @param id
     * @return
     */
    @GetMapping("openSwitchUseRobot/{id}")
    @ControllerEndpoint(operation = "会员列表---开启", exceptionMessage = "操作失败")
    public FebsResponse openSwitchUseRobot(@NotNull(message = "{required}") @PathVariable String id) {
@@ -239,4 +285,13 @@
    public FebsResponse updateRegisterMember(@Valid AdminRegisterMemberVo adminRegisterMemberVo) {
        return iAdminChatService.updateRegisterMember(adminRegisterMemberVo);
    }
    /**
     * 红包列表
     */
    @GetMapping("redBagList")
    public FebsResponse redBagList(ChatUser chatUser, QueryRequest request) {
        Map<String, Object> data = getDataTable(iAdminChatService.getRedBagList(chatUser, request));
        return new FebsResponse().success().data(data);
    }
}