package com.panzhihua.service_community.api; import javax.annotation.Resource; import com.panzhihua.common.model.vos.R; import com.panzhihua.service_community.service.ComActPictureLibraryService; import io.swagger.annotations.ApiOperation; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import com.panzhihua.common.service.community.CommunityService; import lombok.extern.slf4j.Slf4j; /** * @title: ComActPictureLibraryApi * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 * @description: 公共图库 * @author: hans * @date: 2021/11/23 16:54 */ @Slf4j @RestController @RequestMapping("/picture/library") public class ComActPictureLibraryApi { @Resource private ComActPictureLibraryService comActPictureLibraryService; @GetMapping("/get") @ApiOperation("获取预设图库") public R getPresetPictureLibrary(@RequestParam("type") Integer type, @RequestParam("subtype") Integer subtype) { return comActPictureLibraryService.getPresetPictureLibrary(type, subtype); } }