医院列表接口

master
heminjian502 2 years ago
parent 7697192403
commit 773421b462

@ -3,7 +3,9 @@ package com.ruoyi.web.controller.api;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.system.domain.THospital;
import com.ruoyi.system.domain.TRecord;
import com.ruoyi.system.service.ITHospitalService;
import com.ruoyi.system.service.ITRecordService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
@ -27,6 +29,9 @@ public class AppController extends BaseController
@Autowired
private ITRecordService tRecordService;
@Autowired
private ITHospitalService tHospitalService;
/**
* AI
@ -43,4 +48,10 @@ public class AppController extends BaseController
return toAjax(tRecordService.updateTRecord(record));
}
@GetMapping("/hospital/list")
public AjaxResult hospitalList() {
List<THospital> tHospitals = tHospitalService.selectTHospitalList(new THospital());
return AjaxResult.success(tHospitals);
}
}

@ -113,6 +113,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter
.antMatchers("/*/api-docs").anonymous()
.antMatchers("/druid/**").anonymous()
.antMatchers("/wechat/login/get/openid","/wechat/login/for/mp").anonymous()
.antMatchers("/api/app/hospital/list").anonymous()
// 除上面外的所有请求全部需要鉴权认证
.anyRequest().authenticated()
.and()

Loading…
Cancel
Save