yangys
2025-02-17 74355e14088df2c60da6e9a2b026fa0513709de9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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<Object> licmcount() {
        LicenseVerify licenseVerify = new LicenseVerify();
        LicenseContent model = licenseVerify.getContent();
        return R.data(model.getExtra());
    }
    
    
    
}