class AliYunSendSmsUtil {

    public static  com.aliyun.dysmsapi20170525.Client createClient(String accessKeyId, String accessKeySecret) throws Exception {
        Config config = new Config();
        config.accessKeyId = accessKeyId;
        config.accessKeySecret = accessKeySecret;
        return new com.aliyun.dysmsapi20170525.Client(config);
    }

    /**
     * Method for sending SMS messages: Enter the map format
     */
    public static SendSmsResponse send(Map<String, Object> map, String singName, String templateCode, String phone, String accessKeyId, String accessKeySecret) throws Exception {<FILL_FUNCTION_BODY>}
}

        com.aliyun.dysmsapi20170525.Client client = AliYunSendSmsUtil.createClient(accessKeyId, accessKeySecret);
        SendSmsRequest sendReq = new SendSmsRequest()
                .setPhoneNumbers(phone)//The phone number that received the text message
                .setSignName(singName)//SMS signature
                .setTemplateCode(templateCode)//SMS Template Code
                .setTemplateParam(new ObjectMapper().writeValueAsString(map)); //The actual value of the SMS template variable
        SendSmsResponse sendResp = client.sendSms(sendReq);
        return sendResp;

    
<no_super_class>