123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- package com.diagbot.web;
- import com.diagbot.annotation.SysLogger;
- import com.diagbot.dto.DoctorPageModeDTO;
- import com.diagbot.dto.RespDTO;
- import com.diagbot.facade.DoctorPageModeFacade;
- import com.diagbot.vo.DoctorIdVO;
- import com.diagbot.vo.DoctorPageModeAllVO;
- import com.diagbot.vo.DoctorPageModeVO;
- import io.swagger.annotations.Api;
- import io.swagger.annotations.ApiOperation;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.transaction.annotation.Transactional;
- import org.springframework.web.bind.annotation.PostMapping;
- import org.springframework.web.bind.annotation.RequestBody;
- import org.springframework.web.bind.annotation.RequestMapping;
- import org.springframework.web.bind.annotation.RestController;
- import javax.validation.Valid;
- import java.util.List;
- /**
- * <p>
- *
- * </p>
- *
- * @author wangfeng
- * @since 2018-11-20
- */
- /**
- * @author wangfeng
- * @Description: 医生页面结构设置(文本和半结构) 前端控制器
- * @date 2018年11月20日 下午2:50:40
- */
- @RestController
- @RequestMapping("/doctorPageMode")
- @Api(value = "医生页面结构设置API[by:wangfeng]", tags = { "WF——医生页面结构设置API" })
- @SuppressWarnings("unchecked")
- public class DoctorPageModeController {
- @Autowired
- DoctorPageModeFacade doctorPageModeFacade;
- @ApiOperation(value = "保存医生页面结构设置信息[by:wangfeng]",
- notes = "医生id : doctorId;</br>模式分类: modeClassify;</br> 模式值: modeValue;")
- @PostMapping("/saveDoctorPageModes")
- @SysLogger("saveDoctorPageModes")
- @Transactional
- public RespDTO<Boolean> saveDoctorPageModes(@Valid @RequestBody DoctorPageModeAllVO doctorPageModeAllVO) {
- boolean res = doctorPageModeFacade.saveDoctorPageMode(doctorPageModeAllVO);
- return RespDTO.onSuc(res);
- }
- @ApiOperation(value = "获取医生页面结构设置信息[by:wangfeng]", notes = "获取医生页面结构设置信息</br>" +
- "添加四个配置:1:现病史是否默认选择(0不选择)</br>" +
- "2:其它史是否默认选择(0不选择)</br>" +
- "3:字体方案(0标准,1较大)</br>" +
- "4:颜色方案(0黑,1灰)")
- @PostMapping("/getDoctorPageModes")
- @SysLogger("getDoctorPageModes")
- public RespDTO<List<DoctorPageModeDTO>> getDoctorPageModes(@Valid @RequestBody DoctorIdVO doctorIdVO) {
- List<DoctorPageModeDTO> doctorPageModeData = doctorPageModeFacade.getDoctorPageMode(doctorIdVO);
- return RespDTO.onSuc(doctorPageModeData);
- }
- }
|