package com.upyuns.platform.rs.website.controller.web;

import com.github.wxiaoqi.security.auth.client.annotation.IgnoreUserToken;
import com.github.wxiaoqi.security.common.msg.ObjectRestResponse;
import com.github.wxiaoqi.security.common.rest.BaseController;
import com.upyuns.platform.rs.website.biz.CommonInfoBiz;
import com.upyuns.platform.rs.website.dto.CommonInfoDto;
import com.upyuns.platform.rs.website.entity.CommonInfo;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("commonInfo/web")
public class CommonInfoWebController extends BaseController<CommonInfoBiz,CommonInfo> {

	@GetMapping(value = "/app/unauth/getByType")
	@IgnoreUserToken
	public ObjectRestResponse getByType(Integer type) {
		return ObjectRestResponse.succ(baseBiz.getByType(type));
	}

}