|
|
@@ -0,0 +1,16 @@ |
|
|
|
package com.ffii.tsms.modules.data.web.models |
|
|
|
|
|
|
|
import com.ffii.tsms.modules.data.entity.projections.CompanySearchInfo |
|
|
|
import com.ffii.tsms.modules.data.service.CompanyService |
|
|
|
import org.springframework.web.bind.annotation.GetMapping |
|
|
|
import org.springframework.web.bind.annotation.RequestMapping |
|
|
|
import org.springframework.web.bind.annotation.RestController |
|
|
|
|
|
|
|
@RestController |
|
|
|
@RequestMapping("/companys") |
|
|
|
class CompanyController(private val companyService: CompanyService) { |
|
|
|
@GetMapping |
|
|
|
fun allProjects(): List<CompanySearchInfo>{ |
|
|
|
return companyService.allCompanys() |
|
|
|
} |
|
|
|
} |