Commit 6b3c0338 authored by tangwei's avatar tangwei

增加登录验证

parent c25c465c
...@@ -39,7 +39,7 @@ public class AlertCalledController extends BaseController { ...@@ -39,7 +39,7 @@ public class AlertCalledController extends BaseController {
* 新增警情接警记录 * 新增警情接警记录
* @return * @return
*/ */
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY) @TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/save", method = RequestMethod.POST) @RequestMapping(value = "/save", method = RequestMethod.POST)
@ApiOperation(httpMethod = "POST", value = "新增警情接警记录", notes = "新增警情接警记录") @ApiOperation(httpMethod = "POST", value = "新增警情接警记录", notes = "新增警情接警记录")
public boolean saveAlertCalled(HttpServletRequest request, @RequestBody AlertCalled alertCalled){ public boolean saveAlertCalled(HttpServletRequest request, @RequestBody AlertCalled alertCalled){
...@@ -51,7 +51,7 @@ public class AlertCalledController extends BaseController { ...@@ -51,7 +51,7 @@ public class AlertCalledController extends BaseController {
* @param id * @param id
* @return * @return
*/ */
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY) @TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/{id}", method = RequestMethod.DELETE) @RequestMapping(value = "/{id}", method = RequestMethod.DELETE)
@ApiOperation(httpMethod = "DELETE", value = "根据id删除", notes = "根据id删除") @ApiOperation(httpMethod = "DELETE", value = "根据id删除", notes = "根据id删除")
public boolean deleteById(HttpServletRequest request, @PathVariable Long id){ public boolean deleteById(HttpServletRequest request, @PathVariable Long id){
...@@ -65,7 +65,7 @@ public class AlertCalledController extends BaseController { ...@@ -65,7 +65,7 @@ public class AlertCalledController extends BaseController {
* 修改警情接警记录 * 修改警情接警记录
* @return * @return
*/ */
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY) @TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/updateById", method = RequestMethod.PUT) @RequestMapping(value = "/updateById", method = RequestMethod.PUT)
@ApiOperation(httpMethod = "PUT", value = "修改警情接警记录", notes = "修改警情接警记录") @ApiOperation(httpMethod = "PUT", value = "修改警情接警记录", notes = "修改警情接警记录")
public boolean updateByIdAlertCalled(HttpServletRequest request, @RequestBody AlertCalled alertCalled){ public boolean updateByIdAlertCalled(HttpServletRequest request, @RequestBody AlertCalled alertCalled){
...@@ -79,7 +79,7 @@ public class AlertCalledController extends BaseController { ...@@ -79,7 +79,7 @@ public class AlertCalledController extends BaseController {
* @param id * @param id
* @return * @return
*/ */
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY) @TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/{id}", method = RequestMethod.GET) @RequestMapping(value = "/{id}", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "根据id查询", notes = "根据id查询") @ApiOperation(httpMethod = "GET", value = "根据id查询", notes = "根据id查询")
public AlertCalled selectById(HttpServletRequest request, @PathVariable Long id){ public AlertCalled selectById(HttpServletRequest request, @PathVariable Long id){
...@@ -92,7 +92,7 @@ public class AlertCalledController extends BaseController { ...@@ -92,7 +92,7 @@ public class AlertCalledController extends BaseController {
* 列表分页查询 * 列表分页查询
* @return * @return
*/ */
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY) @TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/list", method = RequestMethod.GET) @RequestMapping(value = "/list", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "列表分页查询", notes = "列表分页查询") @ApiOperation(httpMethod = "GET", value = "列表分页查询", notes = "列表分页查询")
public IPage<AlertCalled> listPage(String pageNum,String pageSize, AlertCalled alertCalled){ public IPage<AlertCalled> listPage(String pageNum,String pageSize, AlertCalled alertCalled){
......
...@@ -42,7 +42,7 @@ public class DataDictionaryController extends BaseController { ...@@ -42,7 +42,7 @@ public class DataDictionaryController extends BaseController {
* 新增数据字典 * 新增数据字典
* @return * @return
*/ */
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY) @TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/save", method = RequestMethod.POST) @RequestMapping(value = "/save", method = RequestMethod.POST)
@ApiOperation(httpMethod = "POST", value = "新增数据字典", notes = "新增数据字典") @ApiOperation(httpMethod = "POST", value = "新增数据字典", notes = "新增数据字典")
public boolean saveDataDictionary(HttpServletRequest request, @RequestBody DataDictionary dataDictionary){ public boolean saveDataDictionary(HttpServletRequest request, @RequestBody DataDictionary dataDictionary){
...@@ -54,7 +54,7 @@ public class DataDictionaryController extends BaseController { ...@@ -54,7 +54,7 @@ public class DataDictionaryController extends BaseController {
* @param id * @param id
* @return * @return
*/ */
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY) @TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/{id}", method = RequestMethod.DELETE) @RequestMapping(value = "/{id}", method = RequestMethod.DELETE)
@ApiOperation(httpMethod = "DELETE", value = "根据id删除", notes = "根据id删除") @ApiOperation(httpMethod = "DELETE", value = "根据id删除", notes = "根据id删除")
public boolean deleteById(HttpServletRequest request, @PathVariable Long id){ public boolean deleteById(HttpServletRequest request, @PathVariable Long id){
...@@ -68,7 +68,7 @@ public class DataDictionaryController extends BaseController { ...@@ -68,7 +68,7 @@ public class DataDictionaryController extends BaseController {
* 修改数据字典 * 修改数据字典
* @return * @return
*/ */
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY) @TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/updateById", method = RequestMethod.PUT) @RequestMapping(value = "/updateById", method = RequestMethod.PUT)
@ApiOperation(httpMethod = "PUT", value = "修改数据字典", notes = "修改数据字典") @ApiOperation(httpMethod = "PUT", value = "修改数据字典", notes = "修改数据字典")
public boolean updateByIdDataDictionary(HttpServletRequest request, @RequestBody DataDictionary dataDictionary){ public boolean updateByIdDataDictionary(HttpServletRequest request, @RequestBody DataDictionary dataDictionary){
...@@ -82,7 +82,7 @@ public class DataDictionaryController extends BaseController { ...@@ -82,7 +82,7 @@ public class DataDictionaryController extends BaseController {
* @param id * @param id
* @return * @return
*/ */
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY) @TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/{id}", method = RequestMethod.GET) @RequestMapping(value = "/{id}", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "根据id查询", notes = "根据id查询") @ApiOperation(httpMethod = "GET", value = "根据id查询", notes = "根据id查询")
public DataDictionary selectById(HttpServletRequest request, @PathVariable Long id){ public DataDictionary selectById(HttpServletRequest request, @PathVariable Long id){
...@@ -95,7 +95,7 @@ public class DataDictionaryController extends BaseController { ...@@ -95,7 +95,7 @@ public class DataDictionaryController extends BaseController {
* 列表分页查询 * 列表分页查询
* @return * @return
*/ */
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY) @TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/list", method = RequestMethod.GET) @RequestMapping(value = "/list", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "列表分页查询", notes = "列表分页查询") @ApiOperation(httpMethod = "GET", value = "列表分页查询", notes = "列表分页查询")
public IPage<DataDictionary> listPage(String pageNum,String pageSize, DataDictionary dataDictionary){ public IPage<DataDictionary> listPage(String pageNum,String pageSize, DataDictionary dataDictionary){
...@@ -137,7 +137,7 @@ public class DataDictionaryController extends BaseController { ...@@ -137,7 +137,7 @@ public class DataDictionaryController extends BaseController {
return page; return page;
} }
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY) @TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/gwmcDataDictionary/{type}", method = RequestMethod.GET) @RequestMapping(value = "/gwmcDataDictionary/{type}", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "根据字典类型查询字典", notes = "根据字典类型查询字典") @ApiOperation(httpMethod = "GET", value = "根据字典类型查询字典", notes = "根据字典类型查询字典")
public ResponseModel gwmcDataDictionary( @PathVariable String type) throws Exception{ public ResponseModel gwmcDataDictionary( @PathVariable String type) throws Exception{
......
...@@ -39,7 +39,7 @@ public class FireExpertsController extends BaseController { ...@@ -39,7 +39,7 @@ public class FireExpertsController extends BaseController {
* 新增 * 新增
* @return * @return
*/ */
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY) @TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/save", method = RequestMethod.POST) @RequestMapping(value = "/save", method = RequestMethod.POST)
@ApiOperation(httpMethod = "POST", value = "新增", notes = "新增") @ApiOperation(httpMethod = "POST", value = "新增", notes = "新增")
public boolean saveFireExperts(HttpServletRequest request, @RequestBody FireExperts fireExperts){ public boolean saveFireExperts(HttpServletRequest request, @RequestBody FireExperts fireExperts){
...@@ -51,7 +51,7 @@ public class FireExpertsController extends BaseController { ...@@ -51,7 +51,7 @@ public class FireExpertsController extends BaseController {
* @param id * @param id
* @return * @return
*/ */
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY) @TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/{id}", method = RequestMethod.DELETE) @RequestMapping(value = "/{id}", method = RequestMethod.DELETE)
@ApiOperation(httpMethod = "DELETE", value = "根据id删除", notes = "根据id删除") @ApiOperation(httpMethod = "DELETE", value = "根据id删除", notes = "根据id删除")
public boolean deleteById(HttpServletRequest request, @PathVariable Long id){ public boolean deleteById(HttpServletRequest request, @PathVariable Long id){
...@@ -65,7 +65,7 @@ public class FireExpertsController extends BaseController { ...@@ -65,7 +65,7 @@ public class FireExpertsController extends BaseController {
* 修改 * 修改
* @return * @return
*/ */
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY) @TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/updateById", method = RequestMethod.PUT) @RequestMapping(value = "/updateById", method = RequestMethod.PUT)
@ApiOperation(httpMethod = "PUT", value = "修改", notes = "修改") @ApiOperation(httpMethod = "PUT", value = "修改", notes = "修改")
public boolean updateByIdFireExperts(HttpServletRequest request, @RequestBody FireExperts fireExperts){ public boolean updateByIdFireExperts(HttpServletRequest request, @RequestBody FireExperts fireExperts){
...@@ -79,7 +79,7 @@ public class FireExpertsController extends BaseController { ...@@ -79,7 +79,7 @@ public class FireExpertsController extends BaseController {
* @param id * @param id
* @return * @return
*/ */
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY) @TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/{id}", method = RequestMethod.GET) @RequestMapping(value = "/{id}", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "根据id查询", notes = "根据id查询") @ApiOperation(httpMethod = "GET", value = "根据id查询", notes = "根据id查询")
public FireExperts selectById(HttpServletRequest request, @PathVariable Long id){ public FireExperts selectById(HttpServletRequest request, @PathVariable Long id){
...@@ -92,7 +92,7 @@ public class FireExpertsController extends BaseController { ...@@ -92,7 +92,7 @@ public class FireExpertsController extends BaseController {
* 列表分页查询 * 列表分页查询
* @return * @return
*/ */
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY) @TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/list", method = RequestMethod.GET) @RequestMapping(value = "/list", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "列表分页查询", notes = "列表分页查询") @ApiOperation(httpMethod = "GET", value = "列表分页查询", notes = "列表分页查询")
public IPage<FireExperts> listPage(String pageNum,String pageSize, FireExperts fireExperts){ public IPage<FireExperts> listPage(String pageNum,String pageSize, FireExperts fireExperts){
......
...@@ -49,7 +49,7 @@ public class FireTeamController extends BaseController { ...@@ -49,7 +49,7 @@ public class FireTeamController extends BaseController {
* 新增消防队伍 * 新增消防队伍
* @return * @return
*/ */
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY) @TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/save", method = RequestMethod.POST) @RequestMapping(value = "/save", method = RequestMethod.POST)
@ApiOperation(httpMethod = "POST", value = "新增消防队伍", notes = "新增消防队伍") @ApiOperation(httpMethod = "POST", value = "新增消防队伍", notes = "新增消防队伍")
public boolean saveFireTeam(HttpServletRequest request, @RequestBody FireTeam fireTeam){ public boolean saveFireTeam(HttpServletRequest request, @RequestBody FireTeam fireTeam){
...@@ -61,7 +61,7 @@ public class FireTeamController extends BaseController { ...@@ -61,7 +61,7 @@ public class FireTeamController extends BaseController {
* @param id * @param id
* @return * @return
*/ */
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY) @TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/{id}", method = RequestMethod.DELETE) @RequestMapping(value = "/{id}", method = RequestMethod.DELETE)
@ApiOperation(httpMethod = "DELETE", value = "根据id删除", notes = "根据id删除") @ApiOperation(httpMethod = "DELETE", value = "根据id删除", notes = "根据id删除")
public ResponseModel deleteById(HttpServletRequest request, @PathVariable Long id){ public ResponseModel deleteById(HttpServletRequest request, @PathVariable Long id){
...@@ -76,7 +76,7 @@ public class FireTeamController extends BaseController { ...@@ -76,7 +76,7 @@ public class FireTeamController extends BaseController {
* 修改消防队伍 * 修改消防队伍
* @return * @return
*/ */
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY) @TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/updateById", method = RequestMethod.PUT) @RequestMapping(value = "/updateById", method = RequestMethod.PUT)
@ApiOperation(httpMethod = "PUT", value = "修改消防队伍", notes = "修改消防队伍") @ApiOperation(httpMethod = "PUT", value = "修改消防队伍", notes = "修改消防队伍")
public ResponseModel updateByIdFireTeam(HttpServletRequest request, @RequestBody FireTeam fireTeam){ public ResponseModel updateByIdFireTeam(HttpServletRequest request, @RequestBody FireTeam fireTeam){
...@@ -92,7 +92,7 @@ public class FireTeamController extends BaseController { ...@@ -92,7 +92,7 @@ public class FireTeamController extends BaseController {
* @param id * @param id
* @return * @return
*/ */
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY) @TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/{id}", method = RequestMethod.GET) @RequestMapping(value = "/{id}", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "根据id查询", notes = "根据id查询") @ApiOperation(httpMethod = "GET", value = "根据id查询", notes = "根据id查询")
public FireTeam selectById(HttpServletRequest request, @PathVariable Long id){ public FireTeam selectById(HttpServletRequest request, @PathVariable Long id){
...@@ -101,7 +101,7 @@ public class FireTeamController extends BaseController { ...@@ -101,7 +101,7 @@ public class FireTeamController extends BaseController {
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY) @TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/getList", method = RequestMethod.GET) @RequestMapping(value = "/getList", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "新列表分页查询", notes = "新表分页查询") @ApiOperation(httpMethod = "GET", value = "新列表分页查询", notes = "新表分页查询")
public ResponseModel getFirefighters(Integer pageNum,Integer pageSize, FireTeamListVo fireTeamList){ public ResponseModel getFirefighters(Integer pageNum,Integer pageSize, FireTeamListVo fireTeamList){
...@@ -119,7 +119,7 @@ public class FireTeamController extends BaseController { ...@@ -119,7 +119,7 @@ public class FireTeamController extends BaseController {
* @return * @return
* @throws Exception * @throws Exception
*/ */
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY) @TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/listTree", method = RequestMethod.GET) @RequestMapping(value = "/listTree", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "队伍树", notes = "队伍树") @ApiOperation(httpMethod = "GET", value = "队伍树", notes = "队伍树")
public ResponseModel listTree() throws Exception{ public ResponseModel listTree() throws Exception{
...@@ -142,7 +142,7 @@ public class FireTeamController extends BaseController { ...@@ -142,7 +142,7 @@ public class FireTeamController extends BaseController {
* 列表分页查询 * 列表分页查询
* @return * @return
*/ */
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY) @TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/list", method = RequestMethod.GET) @RequestMapping(value = "/list", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "列表分页查询", notes = "列表分页查询") @ApiOperation(httpMethod = "GET", value = "列表分页查询", notes = "列表分页查询")
public IPage<FireTeam> listPage(String pageNum,String pageSize, FireTeam fireTeam){ public IPage<FireTeam> listPage(String pageNum,String pageSize, FireTeam fireTeam){
......
...@@ -39,7 +39,7 @@ public class FirefightersContactsController extends BaseController { ...@@ -39,7 +39,7 @@ public class FirefightersContactsController extends BaseController {
* 新增l联系人 * 新增l联系人
* @return * @return
*/ */
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY) @TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/save", method = RequestMethod.POST) @RequestMapping(value = "/save", method = RequestMethod.POST)
@ApiOperation(httpMethod = "POST", value = "新增l联系人", notes = "新增l联系人") @ApiOperation(httpMethod = "POST", value = "新增l联系人", notes = "新增l联系人")
public boolean saveFirefightersContacts(HttpServletRequest request, @RequestBody FirefightersContacts firefightersContacts){ public boolean saveFirefightersContacts(HttpServletRequest request, @RequestBody FirefightersContacts firefightersContacts){
...@@ -51,7 +51,7 @@ public class FirefightersContactsController extends BaseController { ...@@ -51,7 +51,7 @@ public class FirefightersContactsController extends BaseController {
* @param id * @param id
* @return * @return
*/ */
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY) @TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/{id}", method = RequestMethod.DELETE) @RequestMapping(value = "/{id}", method = RequestMethod.DELETE)
@ApiOperation(httpMethod = "DELETE", value = "根据id删除", notes = "根据id删除") @ApiOperation(httpMethod = "DELETE", value = "根据id删除", notes = "根据id删除")
public boolean deleteById(HttpServletRequest request, @PathVariable Long id){ public boolean deleteById(HttpServletRequest request, @PathVariable Long id){
...@@ -65,7 +65,7 @@ public class FirefightersContactsController extends BaseController { ...@@ -65,7 +65,7 @@ public class FirefightersContactsController extends BaseController {
* 修改l联系人 * 修改l联系人
* @return * @return
*/ */
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY) @TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/updateById", method = RequestMethod.PUT) @RequestMapping(value = "/updateById", method = RequestMethod.PUT)
@ApiOperation(httpMethod = "PUT", value = "修改l联系人", notes = "修改l联系人") @ApiOperation(httpMethod = "PUT", value = "修改l联系人", notes = "修改l联系人")
public boolean updateByIdFirefightersContacts(HttpServletRequest request, @RequestBody FirefightersContacts firefightersContacts){ public boolean updateByIdFirefightersContacts(HttpServletRequest request, @RequestBody FirefightersContacts firefightersContacts){
...@@ -79,7 +79,7 @@ public class FirefightersContactsController extends BaseController { ...@@ -79,7 +79,7 @@ public class FirefightersContactsController extends BaseController {
* @param id * @param id
* @return * @return
*/ */
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY) @TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/{id}", method = RequestMethod.GET) @RequestMapping(value = "/{id}", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "根据id查询", notes = "根据id查询") @ApiOperation(httpMethod = "GET", value = "根据id查询", notes = "根据id查询")
public FirefightersContacts selectById(HttpServletRequest request, @PathVariable Long id){ public FirefightersContacts selectById(HttpServletRequest request, @PathVariable Long id){
...@@ -92,7 +92,7 @@ public class FirefightersContactsController extends BaseController { ...@@ -92,7 +92,7 @@ public class FirefightersContactsController extends BaseController {
* 列表分页查询 * 列表分页查询
* @return * @return
*/ */
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY) @TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/list", method = RequestMethod.GET) @RequestMapping(value = "/list", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "列表分页查询", notes = "列表分页查询") @ApiOperation(httpMethod = "GET", value = "列表分页查询", notes = "列表分页查询")
public IPage<FirefightersContacts> listPage(String pageNum,String pageSize, FirefightersContacts firefightersContacts){ public IPage<FirefightersContacts> listPage(String pageNum,String pageSize, FirefightersContacts firefightersContacts){
......
...@@ -42,7 +42,7 @@ public class FirefightersContractController extends BaseController { ...@@ -42,7 +42,7 @@ public class FirefightersContractController extends BaseController {
* 新增消防员合同 * 新增消防员合同
* @return * @return
*/ */
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY) @TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/save", method = RequestMethod.POST) @RequestMapping(value = "/save", method = RequestMethod.POST)
@ApiOperation(httpMethod = "POST", value = "新增消防员合同", notes = "新增消防员合同") @ApiOperation(httpMethod = "POST", value = "新增消防员合同", notes = "新增消防员合同")
public ResponseModel saveFirefightersContract(HttpServletRequest request, @RequestBody FirefightersContract firefightersContract){ public ResponseModel saveFirefightersContract(HttpServletRequest request, @RequestBody FirefightersContract firefightersContract){
...@@ -59,7 +59,7 @@ public class FirefightersContractController extends BaseController { ...@@ -59,7 +59,7 @@ public class FirefightersContractController extends BaseController {
* @param id * @param id
* @return * @return
*/ */
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY) @TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/{id}", method = RequestMethod.DELETE) @RequestMapping(value = "/{id}", method = RequestMethod.DELETE)
@ApiOperation(httpMethod = "DELETE", value = "根据id删除", notes = "根据id删除") @ApiOperation(httpMethod = "DELETE", value = "根据id删除", notes = "根据id删除")
public ResponseModel deleteById(HttpServletRequest request, @PathVariable Long id){ public ResponseModel deleteById(HttpServletRequest request, @PathVariable Long id){
...@@ -74,7 +74,7 @@ public class FirefightersContractController extends BaseController { ...@@ -74,7 +74,7 @@ public class FirefightersContractController extends BaseController {
* 修改消防员合同 * 修改消防员合同
* @return * @return
*/ */
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY) @TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/updateById", method = RequestMethod.PUT) @RequestMapping(value = "/updateById", method = RequestMethod.PUT)
@ApiOperation(httpMethod = "PUT", value = "修改消防员合同", notes = "修改消防员合同") @ApiOperation(httpMethod = "PUT", value = "修改消防员合同", notes = "修改消防员合同")
public ResponseModel updateByIdFirefightersContract(HttpServletRequest request, @RequestBody FirefightersContract firefightersContract){ public ResponseModel updateByIdFirefightersContract(HttpServletRequest request, @RequestBody FirefightersContract firefightersContract){
...@@ -93,7 +93,7 @@ public class FirefightersContractController extends BaseController { ...@@ -93,7 +93,7 @@ public class FirefightersContractController extends BaseController {
* @param id * @param id
* @return * @return
*/ */
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY) @TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/{id}", method = RequestMethod.GET) @RequestMapping(value = "/{id}", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "根据id查询", notes = "根据id查询") @ApiOperation(httpMethod = "GET", value = "根据id查询", notes = "根据id查询")
public ResponseModel selectById(HttpServletRequest request, @PathVariable Long id){ public ResponseModel selectById(HttpServletRequest request, @PathVariable Long id){
...@@ -111,7 +111,7 @@ public class FirefightersContractController extends BaseController { ...@@ -111,7 +111,7 @@ public class FirefightersContractController extends BaseController {
* 列表分页查询 * 列表分页查询
* @return * @return
*/ */
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY) @TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/list", method = RequestMethod.GET) @RequestMapping(value = "/list", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "列表分页查询", notes = "列表分页查询") @ApiOperation(httpMethod = "GET", value = "列表分页查询", notes = "列表分页查询")
public ResponseModel listPage(String pageNum,String pageSize, FirefightersContract firefightersContract){ public ResponseModel listPage(String pageNum,String pageSize, FirefightersContract firefightersContract){
......
...@@ -74,7 +74,7 @@ public class FirefightersController extends BaseController { ...@@ -74,7 +74,7 @@ public class FirefightersController extends BaseController {
* 新增消防队员 * 新增消防队员
* @return * @return
*/ */
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY) @TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/save", method = RequestMethod.POST) @RequestMapping(value = "/save", method = RequestMethod.POST)
@ApiOperation(httpMethod = "POST", value = "新增消防队员", notes = "新增消防队员") @ApiOperation(httpMethod = "POST", value = "新增消防队员", notes = "新增消防队员")
public ResponseModel saveFirefighters(HttpServletRequest request, @RequestBody FirefightersVo firefighters){ public ResponseModel saveFirefighters(HttpServletRequest request, @RequestBody FirefightersVo firefighters){
...@@ -88,7 +88,7 @@ public class FirefightersController extends BaseController { ...@@ -88,7 +88,7 @@ public class FirefightersController extends BaseController {
* @param id * @param id
* @return * @return
*/ */
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY) @TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/{id}", method = RequestMethod.DELETE) @RequestMapping(value = "/{id}", method = RequestMethod.DELETE)
@ApiOperation(httpMethod = "DELETE", value = "根据id删除", notes = "根据id删除") @ApiOperation(httpMethod = "DELETE", value = "根据id删除", notes = "根据id删除")
@Transactional @Transactional
...@@ -124,7 +124,7 @@ public class FirefightersController extends BaseController { ...@@ -124,7 +124,7 @@ public class FirefightersController extends BaseController {
* 修改消防队员 * 修改消防队员
* @return * @return
*/ */
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY) @TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/updateById", method = RequestMethod.PUT) @RequestMapping(value = "/updateById", method = RequestMethod.PUT)
@ApiOperation(httpMethod = "PUT", value = "修改消防队员", notes = "修改消防队员") @ApiOperation(httpMethod = "PUT", value = "修改消防队员", notes = "修改消防队员")
public ResponseModel updateByIdFirefighters(HttpServletRequest request, @RequestBody FirefightersVo firefighters){ public ResponseModel updateByIdFirefighters(HttpServletRequest request, @RequestBody FirefightersVo firefighters){
...@@ -141,7 +141,7 @@ public class FirefightersController extends BaseController { ...@@ -141,7 +141,7 @@ public class FirefightersController extends BaseController {
* @param id * @param id
* @return * @return
*/ */
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY) @TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/{id}", method = RequestMethod.GET) @RequestMapping(value = "/{id}", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "根据id查询", notes = "根据id查询") @ApiOperation(httpMethod = "GET", value = "根据id查询", notes = "根据id查询")
public ResponseModel selectById(HttpServletRequest request, @PathVariable Long id){ public ResponseModel selectById(HttpServletRequest request, @PathVariable Long id){
...@@ -160,7 +160,7 @@ public class FirefightersController extends BaseController { ...@@ -160,7 +160,7 @@ public class FirefightersController extends BaseController {
* *
* */ * */
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY) @TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/list/{id}", method = RequestMethod.GET) @RequestMapping(value = "/list/{id}", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "列表详情根据id查询", notes = "列表详情根据id查询") @ApiOperation(httpMethod = "GET", value = "列表详情根据id查询", notes = "列表详情根据id查询")
public ResponseModel listToSelectById(HttpServletRequest request, @PathVariable Long id){ public ResponseModel listToSelectById(HttpServletRequest request, @PathVariable Long id){
...@@ -171,7 +171,7 @@ public class FirefightersController extends BaseController { ...@@ -171,7 +171,7 @@ public class FirefightersController extends BaseController {
* 列表分页查询 * 列表分页查询
* @return * @return
*/ */
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY) @TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/list", method = RequestMethod.GET) @RequestMapping(value = "/list", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "列表分页查询", notes = "列表分页查询") @ApiOperation(httpMethod = "GET", value = "列表分页查询", notes = "列表分页查询")
public IPage<Firefighters> listPage(String pageNum,String pageSize, Firefighters firefighters){ public IPage<Firefighters> listPage(String pageNum,String pageSize, Firefighters firefighters){
...@@ -211,7 +211,7 @@ public class FirefightersController extends BaseController { ...@@ -211,7 +211,7 @@ public class FirefightersController extends BaseController {
page = iFirefightersService.page(pageBean, firefightersQueryWrapper); page = iFirefightersService.page(pageBean, firefightersQueryWrapper);
return page; return page;
} }
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY) @TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/getFirefighters", method = RequestMethod.GET) @RequestMapping(value = "/getFirefighters", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "新列表分页查询", notes = "新表分页查询") @ApiOperation(httpMethod = "GET", value = "新列表分页查询", notes = "新表分页查询")
public ResponseModel getFirefighters(Integer pageNum,Integer pageSize, FirefightersListVo firefighters){ public ResponseModel getFirefighters(Integer pageNum,Integer pageSize, FirefightersListVo firefighters){
......
...@@ -39,7 +39,7 @@ public class FirefightersEducationController extends BaseController { ...@@ -39,7 +39,7 @@ public class FirefightersEducationController extends BaseController {
* 新增人员学历 * 新增人员学历
* @return * @return
*/ */
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY) @TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/save", method = RequestMethod.POST) @RequestMapping(value = "/save", method = RequestMethod.POST)
@ApiOperation(httpMethod = "POST", value = "新增人员学历", notes = "新增人员学历") @ApiOperation(httpMethod = "POST", value = "新增人员学历", notes = "新增人员学历")
public boolean saveFirefightersEducation(HttpServletRequest request, @RequestBody FirefightersEducation firefightersEducation){ public boolean saveFirefightersEducation(HttpServletRequest request, @RequestBody FirefightersEducation firefightersEducation){
...@@ -51,7 +51,7 @@ public class FirefightersEducationController extends BaseController { ...@@ -51,7 +51,7 @@ public class FirefightersEducationController extends BaseController {
* @param id * @param id
* @return * @return
*/ */
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY) @TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/{id}", method = RequestMethod.DELETE) @RequestMapping(value = "/{id}", method = RequestMethod.DELETE)
@ApiOperation(httpMethod = "DELETE", value = "根据id删除", notes = "根据id删除") @ApiOperation(httpMethod = "DELETE", value = "根据id删除", notes = "根据id删除")
public boolean deleteById(HttpServletRequest request, @PathVariable Long id){ public boolean deleteById(HttpServletRequest request, @PathVariable Long id){
...@@ -65,7 +65,7 @@ public class FirefightersEducationController extends BaseController { ...@@ -65,7 +65,7 @@ public class FirefightersEducationController extends BaseController {
* 修改人员学历 * 修改人员学历
* @return * @return
*/ */
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY) @TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/updateById", method = RequestMethod.PUT) @RequestMapping(value = "/updateById", method = RequestMethod.PUT)
@ApiOperation(httpMethod = "PUT", value = "修改人员学历", notes = "修改人员学历") @ApiOperation(httpMethod = "PUT", value = "修改人员学历", notes = "修改人员学历")
public boolean updateByIdFirefightersEducation(HttpServletRequest request, @RequestBody FirefightersEducation firefightersEducation){ public boolean updateByIdFirefightersEducation(HttpServletRequest request, @RequestBody FirefightersEducation firefightersEducation){
...@@ -79,7 +79,7 @@ public class FirefightersEducationController extends BaseController { ...@@ -79,7 +79,7 @@ public class FirefightersEducationController extends BaseController {
* @param id * @param id
* @return * @return
*/ */
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY) @TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/{id}", method = RequestMethod.GET) @RequestMapping(value = "/{id}", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "根据id查询", notes = "根据id查询") @ApiOperation(httpMethod = "GET", value = "根据id查询", notes = "根据id查询")
public FirefightersEducation selectById(HttpServletRequest request, @PathVariable Long id){ public FirefightersEducation selectById(HttpServletRequest request, @PathVariable Long id){
...@@ -92,7 +92,7 @@ public class FirefightersEducationController extends BaseController { ...@@ -92,7 +92,7 @@ public class FirefightersEducationController extends BaseController {
* 列表分页查询 * 列表分页查询
* @return * @return
*/ */
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY) @TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/list", method = RequestMethod.GET) @RequestMapping(value = "/list", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "列表分页查询", notes = "列表分页查询") @ApiOperation(httpMethod = "GET", value = "列表分页查询", notes = "列表分页查询")
public IPage<FirefightersEducation> listPage(String pageNum,String pageSize, FirefightersEducation firefightersEducation){ public IPage<FirefightersEducation> listPage(String pageNum,String pageSize, FirefightersEducation firefightersEducation){
......
...@@ -43,7 +43,7 @@ public class FirefightersJacketController extends BaseController { ...@@ -43,7 +43,7 @@ public class FirefightersJacketController extends BaseController {
* *
* @return * @return
*/ */
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY) @TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/save", method = RequestMethod.POST) @RequestMapping(value = "/save", method = RequestMethod.POST)
@ApiOperation(httpMethod = "POST", value = "新增消防人员配装记录", notes = "新增消防人员配装记录") @ApiOperation(httpMethod = "POST", value = "新增消防人员配装记录", notes = "新增消防人员配装记录")
public ResponseModel saveFirefightersJacket(HttpServletRequest request, public ResponseModel saveFirefightersJacket(HttpServletRequest request,
...@@ -58,7 +58,7 @@ public class FirefightersJacketController extends BaseController { ...@@ -58,7 +58,7 @@ public class FirefightersJacketController extends BaseController {
* @param id * @param id
* @return * @return
*/ */
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY) @TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/{id}", method = RequestMethod.DELETE) @RequestMapping(value = "/{id}", method = RequestMethod.DELETE)
@ApiOperation(httpMethod = "DELETE", value = "根据id删除", notes = "根据id删除") @ApiOperation(httpMethod = "DELETE", value = "根据id删除", notes = "根据id删除")
public ResponseModel deleteById(HttpServletRequest request, @PathVariable Long id) { public ResponseModel deleteById(HttpServletRequest request, @PathVariable Long id) {
...@@ -73,7 +73,7 @@ public class FirefightersJacketController extends BaseController { ...@@ -73,7 +73,7 @@ public class FirefightersJacketController extends BaseController {
* *
* @return * @return
*/ */
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY) @TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/updateById", method = RequestMethod.PUT) @RequestMapping(value = "/updateById", method = RequestMethod.PUT)
@ApiOperation(httpMethod = "PUT", value = "修改消防人员配装记录", notes = "修改消防人员配装记录") @ApiOperation(httpMethod = "PUT", value = "修改消防人员配装记录", notes = "修改消防人员配装记录")
public ResponseModel updateByIdFirefightersJacket(HttpServletRequest request, public ResponseModel updateByIdFirefightersJacket(HttpServletRequest request,
...@@ -88,7 +88,7 @@ public class FirefightersJacketController extends BaseController { ...@@ -88,7 +88,7 @@ public class FirefightersJacketController extends BaseController {
* @param id * @param id
* @return * @return
*/ */
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY) @TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/{id}", method = RequestMethod.GET) @RequestMapping(value = "/{id}", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "根据id查询", notes = "根据id查询") @ApiOperation(httpMethod = "GET", value = "根据id查询", notes = "根据id查询")
public ResponseModel selectById(HttpServletRequest request, @PathVariable Long id) { public ResponseModel selectById(HttpServletRequest request, @PathVariable Long id) {
...@@ -104,7 +104,7 @@ public class FirefightersJacketController extends BaseController { ...@@ -104,7 +104,7 @@ public class FirefightersJacketController extends BaseController {
* *
* @return * @return
*/ */
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY) @TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/list", method = RequestMethod.GET) @RequestMapping(value = "/list", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "列表分页查询", notes = "列表分页查询") @ApiOperation(httpMethod = "GET", value = "列表分页查询", notes = "列表分页查询")
public ResponseModel listPage(String pageNum, String pageSize, FirefightersJacket firefightersJacket) { public ResponseModel listPage(String pageNum, String pageSize, FirefightersJacket firefightersJacket) {
......
...@@ -53,7 +53,7 @@ public class FirefightersPostController extends BaseController { ...@@ -53,7 +53,7 @@ public class FirefightersPostController extends BaseController {
* 新增岗位信息 * 新增岗位信息
* @return * @return
*/ */
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY) @TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/save", method = RequestMethod.POST) @RequestMapping(value = "/save", method = RequestMethod.POST)
@ApiOperation(httpMethod = "POST", value = "新增岗位信息", notes = "新增岗位信息") @ApiOperation(httpMethod = "POST", value = "新增岗位信息", notes = "新增岗位信息")
@Transactional @Transactional
...@@ -70,7 +70,7 @@ public class FirefightersPostController extends BaseController { ...@@ -70,7 +70,7 @@ public class FirefightersPostController extends BaseController {
* @param id * @param id
* @return * @return
*/ */
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY) @TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/{id}", method = RequestMethod.DELETE) @RequestMapping(value = "/{id}", method = RequestMethod.DELETE)
@ApiOperation(httpMethod = "DELETE", value = "根据id删除", notes = "根据 id删除") @ApiOperation(httpMethod = "DELETE", value = "根据id删除", notes = "根据 id删除")
public boolean deleteById(HttpServletRequest request, @PathVariable Long id){ public boolean deleteById(HttpServletRequest request, @PathVariable Long id){
...@@ -84,7 +84,7 @@ public class FirefightersPostController extends BaseController { ...@@ -84,7 +84,7 @@ public class FirefightersPostController extends BaseController {
* 修改岗位信息 * 修改岗位信息
* @return * @return
*/ */
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY) @TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/updateById", method = RequestMethod.PUT) @RequestMapping(value = "/updateById", method = RequestMethod.PUT)
@ApiOperation(httpMethod = "PUT", value = "修改岗位信息", notes = "修改岗位信息") @ApiOperation(httpMethod = "PUT", value = "修改岗位信息", notes = "修改岗位信息")
public ResponseModel updateByIdFirefightersPost(HttpServletRequest request, @RequestBody FirefightersData firefightersData){ public ResponseModel updateByIdFirefightersPost(HttpServletRequest request, @RequestBody FirefightersData firefightersData){
...@@ -104,7 +104,7 @@ public class FirefightersPostController extends BaseController { ...@@ -104,7 +104,7 @@ public class FirefightersPostController extends BaseController {
* @return * @return
*/ */
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY) @TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/{id}", method = RequestMethod.GET) @RequestMapping(value = "/{id}", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "根据消防员id查询", notes = "根据消防员id查询") @ApiOperation(httpMethod = "GET", value = "根据消防员id查询", notes = "根据消防员id查询")
public ResponseModel selectById(HttpServletRequest request, @PathVariable Long id){ public ResponseModel selectById(HttpServletRequest request, @PathVariable Long id){
...@@ -122,7 +122,7 @@ public class FirefightersPostController extends BaseController { ...@@ -122,7 +122,7 @@ public class FirefightersPostController extends BaseController {
* 列表分页查询 * 列表分页查询
* @return * @return
*/ */
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY) @TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/list", method = RequestMethod.GET) @RequestMapping(value = "/list", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "列表分页查询", notes = "列表分页查询") @ApiOperation(httpMethod = "GET", value = "列表分页查询", notes = "列表分页查询")
public IPage<FirefightersPost> listPage(String pageNum,String pageSize, FirefightersPost firefightersPost){ public IPage<FirefightersPost> listPage(String pageNum,String pageSize, FirefightersPost firefightersPost){
......
...@@ -41,7 +41,7 @@ public class FirefightersThoughtController extends BaseController { ...@@ -41,7 +41,7 @@ public class FirefightersThoughtController extends BaseController {
* 新增消防员思想谈话记录 * 新增消防员思想谈话记录
* @return * @return
*/ */
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY) @TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/save", method = RequestMethod.POST) @RequestMapping(value = "/save", method = RequestMethod.POST)
@ApiOperation(httpMethod = "POST", value = "新增消防员思想谈话记录", notes = "新增消防员思想谈话记录") @ApiOperation(httpMethod = "POST", value = "新增消防员思想谈话记录", notes = "新增消防员思想谈话记录")
public ResponseModel saveFirefightersThought(HttpServletRequest request, @RequestBody FirefightersThought firefightersThought){ public ResponseModel saveFirefightersThought(HttpServletRequest request, @RequestBody FirefightersThought firefightersThought){
...@@ -55,7 +55,7 @@ public class FirefightersThoughtController extends BaseController { ...@@ -55,7 +55,7 @@ public class FirefightersThoughtController extends BaseController {
* @param id * @param id
* @return * @return
*/ */
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY) @TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/{id}", method = RequestMethod.DELETE) @RequestMapping(value = "/{id}", method = RequestMethod.DELETE)
@ApiOperation(httpMethod = "DELETE", value = "根据id删除", notes = "根据id删除") @ApiOperation(httpMethod = "DELETE", value = "根据id删除", notes = "根据id删除")
public ResponseModel deleteById(HttpServletRequest request, @PathVariable Long id){ public ResponseModel deleteById(HttpServletRequest request, @PathVariable Long id){
...@@ -70,7 +70,7 @@ public class FirefightersThoughtController extends BaseController { ...@@ -70,7 +70,7 @@ public class FirefightersThoughtController extends BaseController {
/** 修改消防员思想谈话记录 /** 修改消防员思想谈话记录
* @return * @return
*/ */
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY) @TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/updateById", method = RequestMethod.PUT) @RequestMapping(value = "/updateById", method = RequestMethod.PUT)
@ApiOperation(httpMethod = "PUT", value = "修改消防员思想谈话记录", notes = "修改消防员思想谈话记录") @ApiOperation(httpMethod = "PUT", value = "修改消防员思想谈话记录", notes = "修改消防员思想谈话记录")
public ResponseModel updateByIdFirefightersThought(HttpServletRequest request, @RequestBody FirefightersThought firefightersThought){ public ResponseModel updateByIdFirefightersThought(HttpServletRequest request, @RequestBody FirefightersThought firefightersThought){
...@@ -87,7 +87,7 @@ public class FirefightersThoughtController extends BaseController { ...@@ -87,7 +87,7 @@ public class FirefightersThoughtController extends BaseController {
* @return * @return
*/ */
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY) @TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/{id}", method = RequestMethod.GET) @RequestMapping(value = "/{id}", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "根据消防员id查询", notes = "根据消防员id查询") @ApiOperation(httpMethod = "GET", value = "根据消防员id查询", notes = "根据消防员id查询")
public ResponseModel selectById(HttpServletRequest request, @PathVariable Long id){ public ResponseModel selectById(HttpServletRequest request, @PathVariable Long id){
...@@ -105,7 +105,7 @@ public class FirefightersThoughtController extends BaseController { ...@@ -105,7 +105,7 @@ public class FirefightersThoughtController extends BaseController {
* 列表分页查询 * 列表分页查询
* @return * @return
*/ */
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY) @TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/list", method = RequestMethod.GET) @RequestMapping(value = "/list", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "列表分页查询", notes = "列表分页查询") @ApiOperation(httpMethod = "GET", value = "列表分页查询", notes = "列表分页查询")
public ResponseModel listPage(String pageNum,String pageSize, FirefightersThought firefightersThought){ public ResponseModel listPage(String pageNum,String pageSize, FirefightersThought firefightersThought){
......
...@@ -39,7 +39,7 @@ public class FirefightersWorkexperienceController extends BaseController { ...@@ -39,7 +39,7 @@ public class FirefightersWorkexperienceController extends BaseController {
* 新增工作经历 * 新增工作经历
* @return * @return
*/ */
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY) @TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/save", method = RequestMethod.POST) @RequestMapping(value = "/save", method = RequestMethod.POST)
@ApiOperation(httpMethod = "POST", value = "新增工作经历", notes = "新增工作经历") @ApiOperation(httpMethod = "POST", value = "新增工作经历", notes = "新增工作经历")
public boolean saveFirefightersWorkexperience(HttpServletRequest request, @RequestBody FirefightersWorkexperience firefightersWorkexperience){ public boolean saveFirefightersWorkexperience(HttpServletRequest request, @RequestBody FirefightersWorkexperience firefightersWorkexperience){
...@@ -51,7 +51,7 @@ public class FirefightersWorkexperienceController extends BaseController { ...@@ -51,7 +51,7 @@ public class FirefightersWorkexperienceController extends BaseController {
* @param id * @param id
* @return * @return
*/ */
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY) @TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/{id}", method = RequestMethod.DELETE) @RequestMapping(value = "/{id}", method = RequestMethod.DELETE)
@ApiOperation(httpMethod = "DELETE", value = "根据id删除", notes = "根据id删除") @ApiOperation(httpMethod = "DELETE", value = "根据id删除", notes = "根据id删除")
public boolean deleteById(HttpServletRequest request, @PathVariable Long id){ public boolean deleteById(HttpServletRequest request, @PathVariable Long id){
...@@ -65,7 +65,7 @@ public class FirefightersWorkexperienceController extends BaseController { ...@@ -65,7 +65,7 @@ public class FirefightersWorkexperienceController extends BaseController {
* 修改工作经历 * 修改工作经历
* @return * @return
*/ */
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY) @TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/updateById", method = RequestMethod.PUT) @RequestMapping(value = "/updateById", method = RequestMethod.PUT)
@ApiOperation(httpMethod = "PUT", value = "修改工作经历", notes = "修改工作经历") @ApiOperation(httpMethod = "PUT", value = "修改工作经历", notes = "修改工作经历")
public boolean updateByIdFirefightersWorkexperience(HttpServletRequest request, @RequestBody FirefightersWorkexperience firefightersWorkexperience){ public boolean updateByIdFirefightersWorkexperience(HttpServletRequest request, @RequestBody FirefightersWorkexperience firefightersWorkexperience){
...@@ -79,7 +79,7 @@ public class FirefightersWorkexperienceController extends BaseController { ...@@ -79,7 +79,7 @@ public class FirefightersWorkexperienceController extends BaseController {
* @param id * @param id
* @return * @return
*/ */
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY) @TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/{id}", method = RequestMethod.GET) @RequestMapping(value = "/{id}", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "根据id查询", notes = "根据id查询") @ApiOperation(httpMethod = "GET", value = "根据id查询", notes = "根据id查询")
public FirefightersWorkexperience selectById(HttpServletRequest request, @PathVariable Long id){ public FirefightersWorkexperience selectById(HttpServletRequest request, @PathVariable Long id){
...@@ -92,7 +92,7 @@ public class FirefightersWorkexperienceController extends BaseController { ...@@ -92,7 +92,7 @@ public class FirefightersWorkexperienceController extends BaseController {
* 列表分页查询 * 列表分页查询
* @return * @return
*/ */
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY) @TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/list", method = RequestMethod.GET) @RequestMapping(value = "/list", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "列表分页查询", notes = "列表分页查询") @ApiOperation(httpMethod = "GET", value = "列表分页查询", notes = "列表分页查询")
public IPage<FirefightersWorkexperience> listPage(String pageNum,String pageSize, FirefightersWorkexperience firefightersWorkexperience){ public IPage<FirefightersWorkexperience> listPage(String pageNum,String pageSize, FirefightersWorkexperience firefightersWorkexperience){
......
...@@ -88,6 +88,7 @@ public class UserController extends BaseController { ...@@ -88,6 +88,7 @@ public class UserController extends BaseController {
*/ */
@ApiOperation(value = "获取公司选择信息", notes = "获取公司选择信息") @ApiOperation(value = "获取公司选择信息", notes = "获取公司选择信息")
@GetMapping(value = "/selectInfo") @GetMapping(value = "/selectInfo")
@TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
public JSONObject selectInfo() { public JSONObject selectInfo() {
try { try {
JSONObject result = new JSONObject(); JSONObject result = new JSONObject();
...@@ -169,6 +170,7 @@ public class UserController extends BaseController { ...@@ -169,6 +170,7 @@ public class UserController extends BaseController {
*/ */
@ApiOperation(value = "保存登陆用户选择公司信息", notes = "保存登陆用户选择公司信息") @ApiOperation(value = "保存登陆用户选择公司信息", notes = "保存登陆用户选择公司信息")
@PostMapping(value = "/save/curCompany") @PostMapping(value = "/save/curCompany")
@TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
public JSONObject saveCurCompany( public JSONObject saveCurCompany(
@ApiParam(value = "当前登陆用户所选单位机构编号", required = true) @RequestBody ReginParams selectUserInfo) { @ApiParam(value = "当前登陆用户所选单位机构编号", required = true) @RequestBody ReginParams selectUserInfo) {
try { try {
...@@ -278,6 +280,7 @@ public class UserController extends BaseController { ...@@ -278,6 +280,7 @@ public class UserController extends BaseController {
**/ **/
@ApiOperation(httpMethod = "POST", value = "文件上传(<font color='blue'>release</font>)", notes = "文件上传") @ApiOperation(httpMethod = "POST", value = "文件上传(<font color='blue'>release</font>)", notes = "文件上传")
@RequestMapping(value = "/upload-file", method = RequestMethod.POST, produces = "application/json;charset=UTF-8") @RequestMapping(value = "/upload-file", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
@TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
public ResponseModel uploadFile(@RequestParam("file") MultipartFile file) { public ResponseModel uploadFile(@RequestParam("file") MultipartFile file) {
FeignClientResult<Map<String, String>> date = remoteSecurityService.fileImage(file); FeignClientResult<Map<String, String>> date = remoteSecurityService.fileImage(file);
...@@ -296,6 +299,7 @@ public class UserController extends BaseController { ...@@ -296,6 +299,7 @@ public class UserController extends BaseController {
@ApiOperation(httpMethod = "POST", value = "文件上传(<font color='blue'>release</font>)", notes = "文件上传") @ApiOperation(httpMethod = "POST", value = "文件上传(<font color='blue'>release</font>)", notes = "文件上传")
@RequestMapping(value = "/upload-files", method = RequestMethod.POST, produces = "application/json;charset=UTF-8") @RequestMapping(value = "/upload-files", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
@TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
public ResponseModel uploadFile(@RequestParam("files") MultipartFile[] files) throws IOException { public ResponseModel uploadFile(@RequestParam("files") MultipartFile[] files) throws IOException {
// 设置请求头 // 设置请求头
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment