package com.xxfc.platform.order.rest;


import com.github.wxiaoqi.security.common.msg.ObjectRestResponse;
import com.github.wxiaoqi.security.common.rest.BaseController;
import com.xxfc.platform.order.biz.CompanyWalletDetailBiz;
import com.xxfc.platform.order.entity.CompanyWalletDetail;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("wallet/detail")
public class CompanyWalletDetailController extends BaseController<CompanyWalletDetailBiz, CompanyWalletDetail> {


    @RequestMapping(value = "upd", method = RequestMethod.POST)
    public ObjectRestResponse refundAmount(@RequestBody  CompanyWalletDetail companyWalletDetail) {
        baseBiz.addOrUpd(companyWalletDetail);
        return ObjectRestResponse.succ();
    }

}