|
|
@@ -5,12 +5,15 @@ import com.mooctest.crowd.site.command.AgencyUpdateCommand;
|
|
|
import com.mooctest.crowd.site.command.ApplyAgencyAuthCommand;
|
|
|
import com.mooctest.crowd.site.command.GenerateAgencyCommand;
|
|
|
import com.mooctest.crowd.site.data.dto.UserDTO;
|
|
|
+import com.mooctest.crowd.site.data.vo.EvolutionAgencyVO;
|
|
|
import com.mooctest.crowd.site.service.AgencyService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.validation.BindingResult;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
/**
|
|
|
* @author: Diors.Po
|
|
|
* @Email: 171256175@qq.com
|
|
|
@@ -73,4 +76,9 @@ public class AgencyController {
|
|
|
throw new BaseException(result.getFieldError().getDefaultMessage());
|
|
|
return agencyService.updateAgencyInfo(userId, command);
|
|
|
}
|
|
|
+
|
|
|
+ @RequestMapping(value = "/agency/list", method = RequestMethod.GET)
|
|
|
+ public List<EvolutionAgencyVO> getAgencyList(){
|
|
|
+ return agencyService.getAgencyList();
|
|
|
+ }
|
|
|
}
|