package com.sqx.modules.utils.mock;

import com.aliyun.dyplsapi20170525.models.BindAxnResponse;
import com.aliyun.dyplsapi20170525.models.BindAxnResponseBody;

import java.util.HashMap;

/**
 * 阿里云隐私号码服务模拟
 */
public class MockAxnResponseUtil {

    public static BindAxnResponse mockBindAxnResponse() {
        // 封装 DTO
        BindAxnResponseBody.BindAxnResponseBodySecretBindDTO secretBindDTO = new BindAxnResponseBody.BindAxnResponseBodySecretBindDTO()
                .setSecretNo("17000001234")
                .setSubsId("1000000760000000")
                .setExtension("001");

        // 封装 Body
        BindAxnResponseBody body = new BindAxnResponseBody()
                .setCode("OK")
                .setMessage("Mock bind success")
                .setRequestId("mock-request-id-123456")
                .setSecretBindDTO(secretBindDTO);

        // 封装 Response
        BindAxnResponse response = new BindAxnResponse()
                .setStatusCode(200)
                .setHeaders(new HashMap<>()) // 可以为空或模拟一些 header
                .setBody(body);

        return response;
    }
}
