package com.hzs.system.home.controller.api;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.hzs.common.core.web.controller.BaseController;
import com.hzs.common.core.web.page.TableDataInfo;
import com.hzs.common.domain.system.home.HoMemoirHonor;
import com.hzs.system.home.service.IHoMemoirHonorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * <p>
 * 大事记-资源荣誉 前端控制器
 * </p>
 *
 * @author hzs
 * @since 2022-12-07
 */
@RestController
@RequestMapping("/api/ho-memoir-honor")
public class ApiHoMemoirHonorController extends BaseController {

    @Autowired
    private IHoMemoirHonorService memoirHonorService;

    /**
     * @description: 查询大事记-资质荣誉列表
     * @author: zhang jing
     * @date: 2022/8/30 10:20
     * @param: [memoirHonor]
     * @return: com.hzs.common.core.web.page.TableDataInfo
     **/
    @GetMapping("/list")
    public TableDataInfo list() {
        startPage();
        QueryWrapper<HoMemoirHonor> queryWrapper = new QueryWrapper();
        queryWrapper.orderByAsc("SORT");
        List<HoMemoirHonor> list = memoirHonorService.list(queryWrapper);
        return getDataTable(list);
    }




}
