package com.goafanti.app.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.goafanti.common.bo.Result;
import com.goafanti.common.controller.BaseApiController;
import com.goafanti.common.dao.AppConfigMapper;

@RestController
@RequestMapping(path = "open/app/config")
public class OpenAppConfigController extends BaseApiController{
	@Autowired
	private AppConfigMapper appConfigMapper;
	
	@RequestMapping(value = "/getAppRelease", method = RequestMethod.GET)
	public Result getAppRelease(){
		Result res = new Result();
		res.setData(appConfigMapper.getAppRelease());
		return res;
	}
}
