Commit ff34e008 authored by shiyu's avatar shiyu

小红书数据页面运营权限添加

parent 6dd28248
package com.wwdz.ch.admin.controller;
import com.alibaba.fastjson.JSON;
import com.wwdz.ch.admin.annotation.RequiresPermissionsDesc;
import com.wwdz.ch.core.consts.ResultCode;
import com.wwdz.ch.core.entity.im.SendChatMsgRequestDto;
import com.wwdz.ch.core.type.Result;
import com.xxdxxs.utils.StringUtils;
import io.swagger.annotations.ApiOperation;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
public class XhsController {
@RequiresPermissions("admin:xhs:find")
@RequiresPermissionsDesc(menu = { "小红书测试接口", "小红书测试接口" }, button = "测试")
@ApiOperation(value = "小红书测试接口")
@PostMapping("/admin/xhs/find")
public Result sendChatMsg(@RequestBody SendChatMsgRequestDto dto) {
if (!StringUtils.isAllNotEmpty(dto.getFromAccount(), dto.getToAccount(), dto.getMsgType(), dto.getReqId())) {
return Result.failed(ResultCode.PARAM_ERROR);
}
return Result.success();
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment