|
@@ -229,4 +229,24 @@ public class KuaiShouAppListController {
|
|
|
}
|
|
|
return result;
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 通过id查询
|
|
|
+ *
|
|
|
+ * @param id
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @GetMapping(value = "/queryByAppId")
|
|
|
+ public Result<KuaiShouAppList> queryByAppId(Long appId) {
|
|
|
+ Result<KuaiShouAppList> result = new Result<>();
|
|
|
+ KuaiShouAppList kuaiShouAppList = kuaiShouAppListService.getAppListByAppId(appId);
|
|
|
+ if (kuaiShouAppList == null) {
|
|
|
+ result.error500("未找到对应实体");
|
|
|
+ } else {
|
|
|
+ result.setResult(kuaiShouAppList);
|
|
|
+ result.setSuccess(true);
|
|
|
+ }
|
|
|
+ return result;
|
|
|
+ }
|
|
|
}
|