package com.heyu.api.controller.vv;


import com.heyu.api.common.annotation.Describe;
import com.heyu.api.data.dao.vv.VvFrontPageDao;
import com.heyu.api.data.entity.vv.VvFrontPageEntity;
import com.heyu.api.data.service.impl.AppBaseRequest;
import com.heyu.api.data.utils.R;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


@Slf4j
@RestController
@RequestMapping("/app/font")
public class AppFontPageController {


    @Autowired
    private VvFrontPageDao vvFrontPageDao;

    /***
     * 列表
     * /app/font/page
     */
    @Describe("首页信息")
    @RequestMapping("/page")
    public R list(@RequestBody AppBaseRequest request) {


        List<VvFrontPageEntity> vvFrontPageEntityList   = vvFrontPageDao.selectVvFrontPageAll();

        return R.ok().setData(vvFrontPageEntityList);
    }


}
