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.IndustryApplicationInfoBiz;
import com.upyuns.platform.rs.website.dto.IndustryApplicationInfoDto;
import com.upyuns.platform.rs.website.entity.IndustryApplicationInfo;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("industryApplicationInfo")
public class IndustryApplicationInfoController extends BaseController<IndustryApplicationInfoBiz, IndustryApplicationInfo> {

	@PostMapping(value = "addUpdate")
	public ObjectRestResponse addUpdate(@RequestBody IndustryApplicationInfo industryApplicationInfo) {
		return baseBiz.addObj(industryApplicationInfo);
	}

	@GetMapping(value = "getList")
	public ObjectRestResponse getList(IndustryApplicationInfoDto industryApplicationInfoDto) {
		return baseBiz.selectList(industryApplicationInfoDto);
	}

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