package com.ruoyi.project.common.controller;

import com.ruoyi.framework.web.controller.BaseController;
import com.ruoyi.framework.web.domain.AjaxResult;
import com.ruoyi.project.common.dto.MessageChatDto;
import com.ruoyi.project.common.dto.MessageChatUserDto;
import com.ruoyi.project.common.service.IMessageChatUserService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 聊天室参与者Controller
 *
 * @author jubs
 * @date 2024-05-14
 */
@RestController
@RequestMapping("/common/MessageChatUser")
public class MessageChatUserController extends BaseController {
    @Resource
    private IMessageChatUserService messageChatUserService;

    @PostMapping("/deleteMe")
    public AjaxResult deleteMe(@RequestBody MessageChatUserDto messageChatDto) {
        return AjaxResult.success(messageChatUserService.deleteMe(messageChatDto));
    }


}
