|
@ -30,6 +30,8 @@ import com.elink.esua.epdc.service.AppMenuTemplateService; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.web.bind.annotation.*; |
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
|
|
|
|
import java.util.HashMap; |
|
|
|
|
|
import java.util.List; |
|
|
import java.util.Map; |
|
|
import java.util.Map; |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -52,6 +54,12 @@ public class AppMenuTemplateController { |
|
|
return new Result<PageData<AppMenuTemplateDTO>>().ok(page); |
|
|
return new Result<PageData<AppMenuTemplateDTO>>().ok(page); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("list") |
|
|
|
|
|
public Result<List<AppMenuTemplateDTO>> list(){ |
|
|
|
|
|
List<AppMenuTemplateDTO> list = appMenuTemplateService.list(new HashMap<>()); |
|
|
|
|
|
return new Result<List<AppMenuTemplateDTO>>().ok(list); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
@GetMapping("{id}") |
|
|
@GetMapping("{id}") |
|
|
public Result<AppMenuTemplateDTO> get(@PathVariable("id") String id){ |
|
|
public Result<AppMenuTemplateDTO> get(@PathVariable("id") String id){ |
|
|
AppMenuTemplateDTO data = appMenuTemplateService.get(id); |
|
|
AppMenuTemplateDTO data = appMenuTemplateService.get(id); |
|
|