|
|
@@ -0,0 +1,39 @@
|
|
|
+package com.aijiuyi.admin.controller;
|
|
|
+
|
|
|
+import com.aijiuyi.admin.common.annotation.Log;
|
|
|
+import com.aijiuyi.admin.common.entity.Result;
|
|
|
+import com.aijiuyi.admin.common.enums.OperationType;
|
|
|
+import com.aijiuyi.admin.controller.dto.UserAcupointCoordinateDTO;
|
|
|
+import com.aijiuyi.admin.service.UserAcupointService;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
+import org.springframework.web.bind.annotation.PathVariable;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+/**
|
|
|
+ * App 端子用户穴位坐标 Controller。
|
|
|
+ * 路径以 /api/app/ 开头,由 TokenInterceptor 识别为 App 请求,
|
|
|
+ * 不再校验 admin_user 表,避免 APP Token 触发"权限不足"。
|
|
|
+ */
|
|
|
+@RestController
|
|
|
+@RequestMapping("/app/user/acupoint")
|
|
|
+public class AppUserAcupointController {
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private UserAcupointService userAcupointService;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 查询指定子用户的背部产品穴位坐标列表(App 端调用)
|
|
|
+ *
|
|
|
+ * @param profileId 子用户ID(user_profile.id)
|
|
|
+ * @return 背部产品穴位坐标列表
|
|
|
+ */
|
|
|
+ @GetMapping("/{profileId}/product-back-coordinates")
|
|
|
+ @Log(value = "查询用户背部产品穴位坐标", module = "App穴位管理", operationType = OperationType.QUERY)
|
|
|
+ public Result<List<UserAcupointCoordinateDTO>> productBackCoordinates(@PathVariable Long profileId) {
|
|
|
+ return Result.success(userAcupointService.listBackProductCoordinatesByUser(profileId));
|
|
|
+ }
|
|
|
+}
|