package com.heketai.website.web;


import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.heketai.website.common.result.BaseResult;
import com.heketai.website.entity.DevHistory;
import com.heketai.website.service.impl.DevHistoryServiceImpl;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 发展历程 前端控制器
 * </p>
 *
 * @author zhangYong
 * @since 2026-05-14
 */
@RestController
@RequestMapping("/devHistory")
public class DevHistoryController {
    @Autowired
    private DevHistoryServiceImpl devHistoryService;

    @RequestMapping("/findAll")
    @ApiOperation(value = "查所有发展历程", notes = "查所有发展历程")
    public BaseResult findAll() {
        List<DevHistory> devHistories = devHistoryService.selectList(new EntityWrapper<DevHistory>().orderBy("year",true));
        return BaseResult.successWithData(devHistories);
    }
}
