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

@RestController
@RequestMapping("userAddress")
public class UserAddressController extends BaseController<UserAddressBiz,UserAddress>{

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

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

}