package jnpf.cultivate.controller.web.certificate;


import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jnpf.base.ActionResult;
import jnpf.cultivate.service.FtbCultivateCertificateImagesService;
import jnpf.model.cultivate.po.certificate.FtbCertificateImagesEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * web证书模板图片控制器
 *
 * @author xgl
 */
@RestController
@Tag(name = "证书图片", description = "证书图片")
@RequestMapping("/certificate-images")
public class FtbCultivateCertificateImageController {

    /**
     * 服务对象
     */
    @Resource
    private FtbCultivateCertificateImagesService ftbCultivateCertificateImagesService;


    /**
     * 查询所有图片
     *
     * @return listVo
     */
    @Operation(summary = "获取列表")
    @GetMapping("/list-all")
    public ActionResult<List<FtbCertificateImagesEntity>> listAll() {
        List<FtbCertificateImagesEntity> ftbCertificateImagesEntities = ftbCultivateCertificateImagesService.listAll();
        return ActionResult.success(ftbCertificateImagesEntities);
    }

}
