|
@@ -1,9 +1,13 @@
|
|
|
package com.huimv.guowei.admin.controller;
|
|
|
|
|
|
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import com.baomidou.mybatisplus.extension.api.R;
|
|
|
+import com.huimv.guowei.admin.common.utils.Result;
|
|
|
+import com.huimv.guowei.admin.common.utils.ResultCode;
|
|
|
+import com.huimv.guowei.admin.entity.BaseBuilding;
|
|
|
+import com.huimv.guowei.admin.service.IBaseDuckBreedImgService;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
/**
|
|
|
* <p>
|
|
@@ -14,7 +18,17 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
* @since 2023-06-27
|
|
|
*/
|
|
|
@RestController
|
|
|
-@RequestMapping("/base-duck-breed-img")
|
|
|
+@RequestMapping("/baseDuckBreedImg")
|
|
|
+@CrossOrigin
|
|
|
public class BaseDuckBreedImgController {
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private IBaseDuckBreedImgService baseDuckBreedImgService;
|
|
|
+
|
|
|
+
|
|
|
+ @GetMapping("/list")
|
|
|
+ public Result addBuilding() {
|
|
|
+ return new Result(ResultCode.SUCCESS,baseDuckBreedImgService.list());
|
|
|
+ }
|
|
|
+
|
|
|
}
|