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

@RestController
@RequestMapping("/userInvoice")
public class UserInvoiceController extends BaseController<UserInvoiceBiz,UserInvoice> {

	@GetMapping(value = "getList")
	public ObjectRestResponse getList(UserInvoiceDto userInvoiceDto) {
		return baseBiz.getList(userInvoiceDto);
	}

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

}