guang
2023-04-24 6044ac660b623034eaf0d7d8512aff99463458d1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package com.hx.other.service.api.ai;
 
import com.alibaba.fastjson.JSONObject;
import com.dtflys.forest.annotation.JSONBody;
import com.dtflys.forest.annotation.Post;
 
public interface SqlAiApi {
 
    @Post(
            url = "http://chatgpt.phiskin.com/chat/msg",
            headers = {
                    "Content-Type: application/json"
            }
    )
    JSONObject getSql(@JSONBody String param);
 
    @Post(
            url = "http://chatgpt.phiskin.com/chat/msg/short",
            headers = {
                    "Content-Type: application/json"
            }
    )
    JSONObject getSqlShort(@JSONBody String param);
}