|
|
@@ -13,20 +13,20 @@ import cn.com.taiji.common.web.ApiResponse; |
|
|
|
import cn.com.taiji.iaw.api.MyValidController; |
|
|
|
import cn.com.taiji.iaw.dto.ass.AssSaveRecordRequestDTO; |
|
|
|
import cn.com.taiji.iaw.dto.ass.AssSaveRecordResponseDTO; |
|
|
|
import cn.com.taiji.iaw.manager.ass.ActiveRecordManager; |
|
|
|
import cn.com.taiji.iaw.manager.ass.ActiveManager; |
|
|
|
import io.swagger.annotations.Api; |
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
|
|
|
|
@Api(tags = {"激活记录"}) |
|
|
|
@Api(tags = {"设备激活"}) |
|
|
|
@RestController |
|
|
|
@RequestMapping("/active") |
|
|
|
public class ActiveController extends MyValidController { |
|
|
|
@Autowired |
|
|
|
private ActiveRecordManager manager; |
|
|
|
private ActiveManager manager; |
|
|
|
|
|
|
|
@ApiOperation(value = "新增激活记录") |
|
|
|
@PostMapping(value = "/saveRecord") |
|
|
|
public ApiResponse<AssSaveRecordResponseDTO> saveRecord(@Valid @RequestBody AssSaveRecordRequestDTO reqDto) throws ManagerException { |
|
|
|
public ApiResponse<AssSaveRecordResponseDTO> queryVehicle(@Valid @RequestBody AssSaveRecordRequestDTO reqDto) throws ManagerException { |
|
|
|
AssSaveRecordResponseDTO resDto = manager.saveRecord(reqDto); |
|
|
|
return ApiResponse.of(resDto).setMessage("添加成功"); |
|
|
|
} |