package com.moral.controller;
|
|
import javax.annotation.Resource;
|
|
import org.springframework.web.bind.annotation.CrossOrigin;
|
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RestController;
|
|
import com.moral.common.bean.ResultBean;
|
import com.moral.service.MachineActivateService;
|
|
@RestController
|
@RequestMapping("machineactivate")
|
@CrossOrigin(origins = "*", maxAge = 3600)
|
public class MachineActivateController {
|
@Resource
|
private MachineActivateService machineActivateService;
|
|
@PostMapping("machine")
|
public ResultBean<Integer> activateMachine(Integer organizationId,String expireDate) {
|
Integer code = machineActivateService.createMachineActivate(organizationId,expireDate);
|
return new ResultBean<Integer>(code);
|
}
|
|
}
|