修改问题

This commit is contained in:
wanggeng888 2021-03-11 12:52:30 +08:00
parent 2c3ba70742
commit a9dac9f91b
4 changed files with 58 additions and 2 deletions

View File

@ -0,0 +1,45 @@
package com.cm.websocket.controller.message;
import com.cm.common.annotation.CheckRequestBodyAnnotation;
import com.cm.common.constants.ISystemConstant;
import com.cm.common.result.ErrorResult;
import com.cm.common.result.SuccessResult;
import com.cm.websocket.pojo.vos.message.NoticeVO;
import com.cm.websocket.service.IMessageService;
import io.swagger.annotations.*;
import org.springframework.beans.factory.annotation.Autowired;
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;
/**
* When you feel like quitting. Think about why you started
* 当你想要放弃的时候想想当初你为何开始
*
* @ClassName: MessageResourceController
* @Description:
* @Author: wanggeng
* @Date: 2021/1/19 5:01 下午
* @Version: 1.0
*/
@Api(tags = ISystemConstant.API_TAGS_RESOURCE_PREFIX + "消息接口")
@RestController
@RequestMapping(ISystemConstant.RESOURCE_PREFIX + "/message")
public class MessageResourceController {
@Autowired
private IMessageService messageService;
@ApiOperation(value = "通知消息", notes = "通知消息接口")
@ApiImplicitParams({
@ApiImplicitParam(name = "access_token", value = "access_token", paramType = "query")
})
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@PostMapping("noticewithtarget")
@CheckRequestBodyAnnotation
public SuccessResult saveNoticeWithTarget(@RequestBody NoticeVO noticeVO) {
return messageService.saveNoticeWithTarget(noticeVO);
}
}

View File

@ -32,6 +32,11 @@
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
</dependency>
<!-- <dependency>-->
<!-- <groupId>com.cm</groupId>-->
<!-- <artifactId>cloud-common</artifactId>-->
<!-- <version>1.0.1-SNAPSHOT</version>-->
<!-- </dependency>-->
</dependencies>
<build>

View File

@ -36,14 +36,14 @@ public class LicenseTest {
// 本机F0-79-60-1E-49-FC
// 应急管理局测试服务器(58.18.22.25)00-50-56-BE-3C-BC
// 包头政法委00-50-56-93-2D-29
// 内蒙古艺校18-66-DA-E8-EC-D4
// 内蒙古艺校84-65-69-5C-23-AA
// String mac = AddressUtil.getMacAddress();
// System.out.println(mac);
// 环保统一用户FA-16-3E-17-20-7D
// 包头体育局00-16-3E-00-F3-CE
// 包头安监局业务服务器00-50-56-93-66-AC
// 西藏日喀则08-94-EF-6B-5A-44
String license = License.getLicense("2020-08-25", "10000", "00-16-3E-00-F3-CE", "_System_License_");
String license = License.getLicense("2020-08-25", "10000", "84-65-69-5C-23-AA", "_System_License_");
System.out.println(license);
}

View File

@ -464,6 +464,12 @@
<version>2.0.20</version>
</dependency>
<!-- pdf end -->
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.14</version>
</dependency>
</dependencies>
</dependencyManagement>