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

import com.red.circle.framework.dto.ResultResponse;
import com.red.circle.wallet.inner.model.tmp.CommonRestApiCmd;
import com.red.circle.wallet.inner.model.tmp.UserPayAuthCheckRestApiCmd;
import com.red.circle.wallet.inner.model.tmp.UserPayAuthRestApiCmd;
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 PayAuthClientRestApi {

  String API_PREFIX = "/pay-auth/client/restapi";

  /**
   * 设置/修改支付密码.
   */
  @PostMapping("/addOrUpdatePayPwd")
  ResultResponse<Void> addOrUpdatePayPwd(@RequestBody @Validated UserPayAuthRestApiCmd cmd);

  /**
   * 是否设置支付密码
   */
  @PostMapping("/isPwdSetup")
  ResultResponse<Boolean> isPwdSetup(@RequestBody @Validated CommonRestApiCmd cmd);

  /**
   * 效验密码是否正确
   */
  @PostMapping("/payCheckPwd")
  ResultResponse<Boolean> payCheckPwd(@RequestBody @Validated UserPayAuthCheckRestApiCmd cmd);

}
