修改问题
This commit is contained in:
parent
2c3ba70742
commit
a9dac9f91b
@ -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);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -32,6 +32,11 @@
|
|||||||
<groupId>com.alibaba</groupId>
|
<groupId>com.alibaba</groupId>
|
||||||
<artifactId>fastjson</artifactId>
|
<artifactId>fastjson</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<!-- <dependency>-->
|
||||||
|
<!-- <groupId>com.cm</groupId>-->
|
||||||
|
<!-- <artifactId>cloud-common</artifactId>-->
|
||||||
|
<!-- <version>1.0.1-SNAPSHOT</version>-->
|
||||||
|
<!-- </dependency>-->
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
@ -36,14 +36,14 @@ public class LicenseTest {
|
|||||||
// 本机:F0-79-60-1E-49-FC
|
// 本机:F0-79-60-1E-49-FC
|
||||||
// 应急管理局测试服务器(58.18.22.25):00-50-56-BE-3C-BC
|
// 应急管理局测试服务器(58.18.22.25):00-50-56-BE-3C-BC
|
||||||
// 包头政法委:00-50-56-93-2D-29
|
// 包头政法委:00-50-56-93-2D-29
|
||||||
// 内蒙古艺校:18-66-DA-E8-EC-D4
|
// 内蒙古艺校:84-65-69-5C-23-AA
|
||||||
// String mac = AddressUtil.getMacAddress();
|
// String mac = AddressUtil.getMacAddress();
|
||||||
// System.out.println(mac);
|
// System.out.println(mac);
|
||||||
// 环保统一用户:FA-16-3E-17-20-7D
|
// 环保统一用户:FA-16-3E-17-20-7D
|
||||||
// 包头体育局:00-16-3E-00-F3-CE
|
// 包头体育局:00-16-3E-00-F3-CE
|
||||||
// 包头安监局业务服务器(00-50-56-93-66-AC)
|
// 包头安监局业务服务器(00-50-56-93-66-AC)
|
||||||
// 西藏日喀则:08-94-EF-6B-5A-44
|
// 西藏日喀则: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);
|
System.out.println(license);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
6
pom.xml
6
pom.xml
@ -464,6 +464,12 @@
|
|||||||
<version>2.0.20</version>
|
<version>2.0.20</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<!-- pdf end -->
|
<!-- pdf end -->
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>log4j</groupId>
|
||||||
|
<artifactId>log4j</artifactId>
|
||||||
|
<version>1.2.14</version>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</dependencyManagement>
|
</dependencyManagement>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user