lifang před 3 měsíci
rodič
revize
ff2dac2376

+ 41 - 0
tr-modules/tr-module-smartFollowUp/src/main/java/cn/tr/module/smart/wx/controller/BizWxAvatarController.java

@@ -0,0 +1,41 @@
+package cn.tr.module.smart.wx.controller;
+
+import cn.tr.core.pojo.CommonResult;
+import cn.tr.module.smart.common.dto.BizAvatarDTO;
+import cn.tr.module.smart.common.dto.BizAvatarQueryDTO;
+import cn.tr.module.smart.common.enums.AvatarTypeEnum;
+import cn.tr.module.smart.common.service.IBizAvatarService;
+import cn.tr.plugin.mybatis.base.BaseController;
+import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import lombok.AllArgsConstructor;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import java.util.List;
+
+/**
+ * 头像控制器
+ *
+ * @author lf
+ * @date  2025/09/01 11:36
+ */
+@Api(tags = "患者端头像管理")
+@RestController
+@RequestMapping("/wx/avatar")
+@AllArgsConstructor
+public class BizWxAvatarController extends BaseController{
+
+    private final IBizAvatarService bizAvatarService;
+
+    @ApiOperationSupport(author = "lf",order = 1)
+    @ApiOperation(value="根据条件查询头像(不分页)",notes = "权限: 无")
+    @PostMapping("/query/list")
+    public CommonResult<List<BizAvatarDTO>> selectList() {
+        BizAvatarQueryDTO query = new BizAvatarQueryDTO();
+        query.setType(AvatarTypeEnum.PATIENT_AVATAR);
+        return CommonResult.success(bizAvatarService.selectBizAvatarList(query));
+    }
+}