|
|
|
@@ -226,6 +226,9 @@ func (c *Client) CreateJob(req CreateAIJobReq, token string) (*CreateJobResp, er |
|
|
|
return nil, err |
|
|
|
} |
|
|
|
|
|
|
|
//all, err := io.ReadAll(resp.Body) |
|
|
|
//println(string(all)) |
|
|
|
|
|
|
|
contType := resp.Header.Get("Content-Type") |
|
|
|
if strings.Contains(contType, http2.ContentTypeJSON) { |
|
|
|
var codeResp response2[CreateJobResp] |
|
|
|
@@ -402,7 +405,7 @@ type JCS struct { |
|
|
|
type BindParam struct { |
|
|
|
BootFile string `json:"bootFile"` |
|
|
|
DefaultBranch string `json:"defaultBranch"` |
|
|
|
RepoName string `json:"repo"` |
|
|
|
RepoName string `json:"repoName"` |
|
|
|
} |
|
|
|
|
|
|
|
type BindResp struct { |
|
|
|
@@ -459,6 +462,9 @@ func (c *Client) BindModel(req BindReq, token string) (*BindResp, error) { |
|
|
|
return nil, err |
|
|
|
} |
|
|
|
|
|
|
|
//all, err := io.ReadAll(resp.Body) |
|
|
|
//println(string(all)) |
|
|
|
|
|
|
|
contType := resp.Header.Get("Content-Type") |
|
|
|
if strings.Contains(contType, http2.ContentTypeJSON) { |
|
|
|
var codeResp response2[BindResp] |
|
|
|
|