package cc.mrbird.febs.mall.controller;
|
|
import cc.mrbird.febs.common.controller.BaseController;
|
import cc.mrbird.febs.common.entity.FebsConstant;
|
import cc.mrbird.febs.common.utils.FebsUtil;
|
import cc.mrbird.febs.mall.mapper.ChatUserMapper;
|
import cc.mrbird.febs.mall.service.IAdminMallMemberService;
|
import cc.mrbird.febs.mall.vo.AdminChatWalletVo;
|
import cc.mrbird.febs.mall.vo.MallMemberVo;
|
import lombok.RequiredArgsConstructor;
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
import org.springframework.stereotype.Controller;
|
import org.springframework.ui.Model;
|
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.PathVariable;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import javax.annotation.Resource;
|
|
@Controller("chatView")
|
@RequestMapping(FebsConstant.VIEW_PREFIX + "modules/chat")
|
@RequiredArgsConstructor
|
public class ViewChatController extends BaseController {
|
|
@Resource
|
private ChatUserMapper chatUserMapper;
|
|
/**
|
* 用户列表
|
* @return
|
*/
|
@GetMapping("userList")
|
@RequiresPermissions("userList:view")
|
public String userList() {
|
return FebsUtil.view("modules/chat/userList");
|
}
|
|
/**
|
* 用户列表-系统拨付
|
* @param userId
|
* @param model
|
* @return
|
*/
|
@GetMapping("mallSystemPay/{userId}")
|
@RequiresPermissions("mallSystemPay:update")
|
public String systemPay(@PathVariable String userId, Model model) {
|
AdminChatWalletVo data = chatUserMapper.selectTotalAmountByUserIdAndType(userId);
|
model.addAttribute("systemPay", data);
|
return FebsUtil.view("modules/chat/mallSystemPay");
|
}
|
|
/**
|
* 资金流水
|
* @return
|
*/
|
@GetMapping("chatAmountFlow")
|
@RequiresPermissions("chatAmountFlow:view")
|
public String chatAmountFlow() {
|
return FebsUtil.view("modules/chat/chatAmountFlow");
|
}
|
|
/**
|
* 会员充值
|
* @return
|
*/
|
@GetMapping("chatChargeList")
|
@RequiresPermissions("chatChargeList:view")
|
public String chatChargeList() {
|
return FebsUtil.view("modules/chat/chatChargeList");
|
}
|
|
/**
|
* 会员提现
|
* @return
|
*/
|
@GetMapping("chatWithDrawList")
|
@RequiresPermissions("chatWithDrawList:view")
|
public String chatWithDrawList() {
|
return FebsUtil.view("modules/chat/chatWithDrawList");
|
}
|
}
|