package org.wcs.serve.controller.app;

import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import org.wcs.model.vo.serve.AppServeResponse;
import org.wcs.serve.service.intf.IDevService;

/**
 * 开发者服务
 */
@RestController
@RequestMapping("/app/dev")
@ResponseBody
@RequiredArgsConstructor
public class DevController {

    private final IDevService devService;

    /**
     * 重启应用
     * @return 重启结果
     */
    @PutMapping("/restart")
    public AppServeResponse restartApplication() {
        return devService.restartApplication();
    }

}
