package com.gic.haoban.manage.web.controller;

import com.gic.haoban.common.anno.IgnoreLogin;
import com.gic.haoban.common.utils.HaobanResponse;
import com.gic.haoban.manage.api.dto.HelpDTO;
import com.gic.haoban.manage.api.service.HelpApiService;
import com.gic.haoban.manage.web.errCode.HaoBanErrCode;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
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;

@RestController
public class HelpController extends WebBaseController{
	
private static Logger logger = LoggerFactory.getLogger(HelpController.class);
	
	@Autowired
	private HelpApiService helpApiService;

    /**
     * 帮助中心列表
     * @return
     */
	@IgnoreLogin
    @RequestMapping("/get-help-list")
    public HaobanResponse getHelpList() {
    	
    	List<HelpDTO> list = helpApiService.getList();
    	return resultResponse(HaoBanErrCode.ERR_1,list);
    }

}
