//package com.backendsys.controller.Ai;
//
//import com.backendsys.exception.CustException;
//import com.fzzixun.openapi.sdk.client.OpenClient;
//import com.fzzixun.openapi.sdk.request.AppTokenRequest;
//import com.fzzixun.openapi.sdk.response.AppTokenResponse;
//import com.fzzixun.openapi.sdk.response.CommonResponse;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//@RestController
//public class AiznController {
//
//    private String url = "https://sbappstoreapi.ziniao.com";
//    private String appId = "202404191230940156308090880";
//    private String privateKeyIsv = "MIIEvwIBADANBgkqhkiG9w0BAQEFAASCBKkwggSlAgEAAoIBAQCijRL8x8RIUCLUpiaS1OLZeXMGKhsGmL1+rF841Lzq4ZK27wyw3vtqI0wo76GK0MwZVl97Ku1g5MxYRtib4DIAaGjxU/XYFLh0i9Amcg+StoxjM9K9/w+xSLh4oqvpoWRszM7EcTgZrw4g86n2Nf3sFT3TMSsDOqbSNDYPgaiU01FDbtu9vOpDOt4D5/bmHqKhXIbPbDpIs8b7yq3kfXQjHcvZl02mAQPxqcyoIC6Sftjiccp/+ShgWs+uR3YhiLMn6rv2p4SvfdT+n+TY3/Gu2Ec4h6YkGd1pi1ZZ/cab0x2xgp4+zDCdgHzyNI6lv3C/MhSNlCDFPw2VYeDYE8hHAgMBAAECggEBAJY/sfpHKE3zDI7kWSlFb722/bQH/V0Wl6lb6NReB5VQFc3TnjZqlZdgswfvn7DxGIafCLiPUEVMlvlN2vARxgYMfFv80HP/ixPnG+o9admhtJgJkdUeysGCx0hyjFbyYCIVGVYIlONgpL2enE5BT8kFRVVN0EU21HXd3s5seYe9Zt6pTNHf387CDiHUJrpe3y01d30BWz/PhC9OE8LgVRS6YF9t4VB42ndkjmwqENY1fs4vg1KU7+EPPjtysovl5XXAGzCfsW0cjkirZdZFhb5mTDuWvs9ck7BKJkdjnTRGn2/mGZPikZWOUDUMinQTojVZ96QXSWlq9AC1WuaNu9kCgYEA0H7TXcgNInY35G3VK4a4uvZQ1UmcPQ9ATzli55GZXHHuznwTVyDhj3h/JZKjmdZfkFmsNw/qdCQCug8o9t/IccXY/T5rVSPsy4YwoX78CAH9tw0wZF6iVILitLxAtFmnM7TDR6OXo6hdisDu/TLVmq7sfgPxfC1QQnl/jGwUmwMCgYEAx5ZlI5ows3MojrXj1RyG8RRETFHvNcBEOZ7jhEaCIijka8m3tAsKbBvk1dRF1B6vNYS8DXN/DzjaVWXYFljyHvnsyeT46VFh+FZRur8I07rTKA/GSjOq2efyxkh6myk8B3DEN6RpxW3vBZngG4tbPHXSj1LVH/tmM8SU0mZsmG0CgYEAyZkoNXD/Skg26RhOW8TrkFQleuavPNcnXrNlb/X37Ux5FY0hgkjX8UsY3jK5IEIJq2EZxTANinlbbZ7FBFkDzwb4Nn6JeAzBpVW+ZhmMBw4tzjbhiNt8aO0Z2pqAkiJyKuvpOrbzJBrjQAwnygnCQsxK/dpAQMrr5Srn6taC4hMCgYEAkRSi6lFP63HfXnWbarN059N6nhvFDcZ4EYaNDf8O43PkLvIPpkGMTu+r1T+bjsjLRdT5ubFmABOsqf0BKaV4QsobtNrLkRaGZ7WfbWcmLHqWuX1V/2Q1Yna3xCi1bwp3R1VSXLwX4tq5r9Gd1YfkRzvCVkq4/6mILkNMhvDLKbUCgYAvR7EJmTW12rs39e/nK4DdlbKoALAsPE5QobBfdG50dTV/lKCLit1n8vm0PNtO9IE7Pz5ecxF2cdsPhncbMG6O7edkBqx1DT1RMwYA1EYFkqET0iOmZhXbrYQtlc5d2Yrm6lYQxZMN3DFv/C4SM48rb3x4o9djBbINADpScZgpbw==";
//
//    /**
//     * 获得签名
//     */
//    @GetMapping("/api/ai/zn/getSign")
//    public String getSign() {
//        return "OK";
//    }
//
//    /**
//     * [Method] 8.3.1.3 获取应用token
//     * https://open.ziniao.com/docSupport?docId=84#8.3.1.3%E8%8E%B7%E5%8F%96%E5%BA%94%E7%94%A8token27
//     */
//    private String getAppToken() {
//        OpenClient client = new OpenClient(url, appId, privateKeyIsv);
//        // 创建请求对象
//        AppTokenRequest request = new AppTokenRequest();
//        // 发送请求
//        CommonResponse response = client.execute(request);
//        if (response.isSuccess()) {
//            AppTokenResponse appTokenResponse = response.getDataObj(AppTokenResponse.class);
//            return appTokenResponse.getAppAuthToken();
//        } else {
//            throw new CustException(response.getErrorMsg());
//        }
//    }
//
//}
