package com.qianwen.smartman.modules.workinghour.controller; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RestController; import com.qianwen.core.boot.ctrl.BladeController; import com.qianwen.core.scanner.modular.stereotype.ApiResource; import com.qianwen.core.tenant.annotation.NonDS; import com.qianwen.core.tool.api.R; import com.qianwen.license.common.LicenseExtraModel; import com.qianwen.license.common.LicenseVerify; import de.schlichtherle.license.LicenseContent; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; @Api(value = "工时分析", tags = {"工时分析"}) @RestController @ApiResource({"test"}) @NonDS @Validated public class LicenseTestController extends BladeController { private Logger log = LoggerFactory.getLogger(this.getClass()); @GetMapping({"/licmcount"}) @ApiOperation("测试授权") public R licmcount() { LicenseVerify licenseVerify = new LicenseVerify(); LicenseContent model = licenseVerify.getContent(); return R.data(model.getExtra()); } }