|
@@ -2,12 +2,16 @@ package com.ym.mec.student.controller;
|
|
|
|
|
|
|
|
|
import com.ym.mec.biz.dal.dao.OrganizationDao;
|
|
|
+import com.ym.mec.biz.dal.entity.Organization;
|
|
|
import com.ym.mec.common.controller.BaseController;
|
|
|
+import com.ym.mec.common.entity.HttpResponseResult;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
|
|
|
@RequestMapping("organization")
|
|
|
@Api(tags = "分部服务")
|
|
@@ -19,7 +23,7 @@ public class OrganizationController extends BaseController {
|
|
|
|
|
|
@ApiOperation(value = "获取分部列表")
|
|
|
@GetMapping("/getOrgans")
|
|
|
- public Object getOrgans() {
|
|
|
+ public HttpResponseResult<List<Organization>> getOrgans() {
|
|
|
return succeed(organizationDao.findAllOrgans());
|
|
|
}
|
|
|
}
|