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

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")
public class CommonInfoController extends BaseController<CommonInfoBiz,CommonInfo> {

	@GetMapping(value = "getAll")
	public ObjectRestResponse getAll(CommonInfoDto commonInfoDto) {
		return baseBiz.getAll(commonInfoDto);
	}

	@PostMapping(value = "addUpdate")
	public ObjectRestResponse addUpdate(@RequestBody CommonInfo commonInfo) {
		return baseBiz.addUpdate(commonInfo);
	}
}