package com.yccrc.kede.controller.other;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.yccrc.common.core.controller.BaseController;
import com.yccrc.kede.service.*;

import com.yccrc.common.vo.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

@RestController
@RequestMapping("/valid")
@Api(tags = "数据校验")
public class ValidController extends BaseController
{
	@Autowired
	IEnterpriseService enterpriseService;
	
	@Autowired
	IProjectService projectService;
	
	 @ApiOperation(value = "校验统一社会信用代码")
    @GetMapping("checkLicense/{license}")
    public Result<Boolean> checkLicense(@PathVariable("license") String license)
    {
		 
		return new Result<Boolean>().ok(enterpriseService.checkLicense(license));
		
    } 
}
