package com.fs.fastgptApi.service.Impl;//package com.fs.fastgptApi.service.Impl;
//
//import com.alibaba.fastjson.JSON;
//import com.fs.fastgptApi.config.FastGptApiConfig;
//import com.fs.fastgptApi.param.ChatShareAutFinishParam;
//import com.fs.fastgptApi.param.ChatShareAuthInitParam;
//import com.fs.fastgptApi.param.ChatShareAuthStartParam;
//import com.fs.fastgptApi.result.AddDataToCollectionBatchResult;
//import com.fs.fastgptApi.result.ShareLinkAuthResult;
//import com.fs.fastgptApi.service.ShareLinkAuthService;
//import com.fs.fastgptApi.util.HttpUtil;
//import org.springframework.stereotype.Service;
//
///**
//* 分享链接身份鉴权
//*/
//@Service
//public class ShareLinkAuthServiceImpl implements ShareLinkAuthService {
//
//    /**
//     * 编写聊天初始化校验接口
//     */
//    @Override
//    public ShareLinkAuthResult chatShareAuthInit(ChatShareAuthInitParam param) {
//        String json = HttpUtil.sendAuthPost(param, FastGptApiConfig.url + FastGptApiConfig.chatShareAuthInit);
//        ShareLinkAuthResult result = JSON.parseObject(json, ShareLinkAuthResult.class);
//        return result;
//    }
//
//    /**
//     * 编写对话前校验接口
//     */
//    @Override
//    public ShareLinkAuthResult chatShareAuthStart(ChatShareAuthStartParam param) {
//        String json = HttpUtil.sendAuthPost(param, FastGptApiConfig.url + FastGptApiConfig.chatShareAuthStart);
//        ShareLinkAuthResult result = JSON.parseObject(json, ShareLinkAuthResult.class);
//        return result;
//    }
//
//    /**
//    *  编写对话结果上报接口（可选）
//    */
//    @Override
//    public ShareLinkAuthResult chatShareAutFinish(ChatShareAutFinishParam param) {
//        String json = HttpUtil.sendAuthPost(param, FastGptApiConfig.url + FastGptApiConfig.chatShareAutFinish);
//        ShareLinkAuthResult result = JSON.parseObject(json, ShareLinkAuthResult.class);
//        return result;
//    }
//
//}
