package com.red.circle.wallet.inner.endpoint.tmp.api;

import com.red.circle.framework.dto.ResultResponse;
import com.red.circle.wallet.inner.model.tmp.BeanToGoldTmpCO;
import com.red.circle.wallet.inner.model.tmp.CommonRestApiCmd;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 豆子服务(兼容服务替换).
 *
 * @author pengliang on 2023/12/26
 */
public interface BeanClientRestApi {

  String API_PREFIX = "/bean/client/restapi";

  /**
   * 豆子兑换金币.
   */
  @PostMapping("/getExchange")
  ResultResponse<BeanToGoldTmpCO> getExchange(@RequestBody @Validated CommonRestApiCmd cmd);


}
