Documentation ¶
Index ¶
- Constants
- func GetAppAccessTokenPath(namespace, apiName string) string
- func GetDefaultAppAccessTokenPath(namespace string) string
- func GetDefaultTenantAccessTokenPath(namespace string) string
- func GetExecutionUserTaskInfo(namespace string, executionID int64) string
- func GetGetApprovalInstancePath(instanceID int64) string
- func GetPathBatchCreateRecord(namespace, objectAPIName string) string
- func GetPathBatchCreateRecordAsync(namespace, objectAPIName string) string
- func GetPathBatchCreateRecordV2(namespace, objectAPIName string) string
- func GetPathBatchDeleteRecord(namespace, objectAPIName string) string
- func GetPathBatchDeleteRecordAsync(namespace, objectAPIName string) string
- func GetPathBatchDeleteRecordV2(namespace, objectAPIName string) string
- func GetPathBatchUpdateRecord(namespace, objectAPIName string) string
- func GetPathBatchUpdateRecordAsync(namespace, objectAPIName string) string
- func GetPathBatchUpdateRecordV2(namespace, objectAPIName string) string
- func GetPathCreateMessage(namespace string) string
- func GetPathCreateRecord(namespace, objectAPIName string) string
- func GetPathCreateRecordV2(namespace, objectAPIName string) string
- func GetPathDeleteRecord(namespace, objectAPIName string) string
- func GetPathDeleteRecordV2(namespace, objectAPIName string, recordID int64) string
- func GetPathDownloadAvatar(imageID string) string
- func GetPathDownloadFile() string
- func GetPathDownloadFileV2(fileID string) string
- func GetPathExecuteFlow(namespace, APIName string) string
- func GetPathGetAllGlobalConfig(namespace string) string
- func GetPathGetExecutionInfo(namespace string, executionID int64) string
- func GetPathGetField(namespace, objectAPIName, fieldAPIName string) string
- func GetPathGetFields(namespace, objectAPIName string) string
- func GetPathGetRecords(namespace, objectAPIName string) string
- func GetPathGetRecordsV2(namespace, objectAPIName string) string
- func GetPathInvokeFunctionAsync(namespace string) string
- func GetPathInvokeFunctionWithAuth(namespace, functionAPIName string) string
- func GetPathMGetUserSettings() string
- func GetPathOql(namespace string) string
- func GetPathRevokeExecution(namespace string, executionID int64) string
- func GetPathTransaction(namespace string) string
- func GetPathUpdateMessage(namespace string) string
- func GetPathUpdateRecord(namespace, objectAPIName string) string
- func GetPathUpdateRecordV2(namespace, objectAPIName string, recordID int64) string
- func GetTenantAccessTokenPath(namespace, apiName string) string
- type RequestHttp
- func (r *RequestHttp) BatchCreateRecord(ctx context.Context, appCtx *structs.AppCtx, objectAPIName string, ...) ([]int64, error)
- func (r *RequestHttp) BatchCreateRecordAsync(ctx context.Context, appCtx *structs.AppCtx, objectAPIName string, ...) (int64, error)
- func (r *RequestHttp) BatchCreateRecordV2(ctx context.Context, appCtx *structs.AppCtx, objectAPIName string, ...) ([]int64, error)
- func (r *RequestHttp) BatchDeleteRecord(ctx context.Context, appCtx *structs.AppCtx, objectAPIName string, ...) (*structs.BatchResult, error)
- func (r *RequestHttp) BatchDeleteRecordAsync(ctx context.Context, appCtx *structs.AppCtx, objectAPIName string, ...) (int64, error)
- func (r *RequestHttp) BatchDeleteRecordV2(ctx context.Context, appCtx *structs.AppCtx, objectAPIName string, ...) error
- func (r *RequestHttp) BatchUpdateRecord(ctx context.Context, appCtx *structs.AppCtx, objectAPIName string, ...) (*structs.BatchResult, error)
- func (r *RequestHttp) BatchUpdateRecordAsync(ctx context.Context, appCtx *structs.AppCtx, objectAPIName string, ...) (int64, error)
- func (r *RequestHttp) BatchUpdateRecordV2(ctx context.Context, appCtx *structs.AppCtx, objectAPIName string, ...) error
- func (r *RequestHttp) CreateMessage(ctx context.Context, appCtx *structs.AppCtx, param map[string]interface{}) (int64, error)
- func (r *RequestHttp) CreateRecord(ctx context.Context, appCtx *structs.AppCtx, objectAPIName string, ...) (*structs.RecordID, error)
- func (r *RequestHttp) CreateRecordV2(ctx context.Context, appCtx *structs.AppCtx, objectAPIName string, ...) (*structs.RecordID, error)
- func (r *RequestHttp) DeleteRecord(ctx context.Context, appCtx *structs.AppCtx, objectAPIName string, ...) error
- func (r *RequestHttp) DeleteRecordV2(ctx context.Context, appCtx *structs.AppCtx, objectAPIName string, ...) error
- func (r *RequestHttp) DownloadAvatar(ctx context.Context, appCtx *structs.AppCtx, imageID string) ([]byte, error)
- func (r *RequestHttp) DownloadFile(ctx context.Context, appCtx *structs.AppCtx, fileID string) ([]byte, error)
- func (r *RequestHttp) Execute(ctx context.Context, appCtx *structs.AppCtx, APIName string, ...) (invokeResult *structs.FlowExecuteResult, err error)
- func (r *RequestHttp) GetAllGlobalConfig(ctx context.Context, appCtx *structs.AppCtx) (map[string]string, error)
- func (r *RequestHttp) GetAppAccessToken(ctx context.Context, appCtx *structs.AppCtx, apiName string) (*structs.AppAccessToken, error)
- func (r *RequestHttp) GetApprovalInstance(ctx context.Context, appCtx *structs.AppCtx, ...) (*structs.ApprovalInstance, error)
- func (r *RequestHttp) GetApprovalInstanceList(ctx context.Context, appCtx *structs.AppCtx, ...) (approvalInstanceList *structs.ApprovalInstanceList, err error)
- func (r *RequestHttp) GetDefaultAppAccessToken(ctx context.Context, appCtx *structs.AppCtx) (*structs.AppAccessToken, error)
- func (r *RequestHttp) GetDefaultTenantAccessToken(ctx context.Context, appCtx *structs.AppCtx) (*structs.TenantAccessToken, error)
- func (r *RequestHttp) GetExecutionInfo(ctx context.Context, appCtx *structs.AppCtx, executionID int64) (instanceInfo *structs.ExecutionInfo, err error)
- func (r *RequestHttp) GetExecutionUserTaskInfo(ctx context.Context, appCtx *structs.AppCtx, executionID int64) (taskInfoList []*structs.TaskInfo, err error)
- func (r *RequestHttp) GetField(ctx context.Context, appCtx *structs.AppCtx, ...) (result *structs.Field, err error)
- func (r *RequestHttp) GetFields(ctx context.Context, appCtx *structs.AppCtx, objectAPIName string) (result *structs.ObjFields, err error)
- func (r *RequestHttp) GetRecordCount(ctx context.Context, appCtx *structs.AppCtx, objectAPIName string, ...) (int64, error)
- func (r *RequestHttp) GetRecordCountV2(ctx context.Context, appCtx *structs.AppCtx, objectAPIName string, ...) (int64, error)
- func (r *RequestHttp) GetRecords(ctx context.Context, appCtx *structs.AppCtx, objectAPIName string, ...) ([][]string, error)
- func (r *RequestHttp) GetRecordsV2(ctx context.Context, appCtx *structs.AppCtx, objectAPIName string, ...) ([][]string, error)
- func (r *RequestHttp) GetTenantAccessToken(ctx context.Context, appCtx *structs.AppCtx, apiName string) (*structs.TenantAccessToken, error)
- func (r *RequestHttp) GetTenantInfo(ctx context.Context, appCtx *structs.AppCtx) (*cStructs.Tenant, error)
- func (r *RequestHttp) InvokeFunctionAsync(ctx context.Context, appCtx *structs.AppCtx, apiName string, ...) (int64, error)
- func (r *RequestHttp) InvokeFunctionWithAuth(ctx context.Context, appCtx *structs.AppCtx, apiName string, ...) error
- func (r *RequestHttp) MGetUserSettings(ctx context.Context, appCtx *structs.AppCtx, userIDList []int64) (result []*structs.Locale, err error)
- func (r *RequestHttp) Oql(ctx context.Context, appCtx *structs.AppCtx, oql string, args interface{}, ...) (unauthFields [][]string, err error)
- func (r *RequestHttp) RevokeExecution(ctx context.Context, appCtx *structs.AppCtx, executionID int64, ...) error
- func (r *RequestHttp) Transaction(ctx context.Context, appCtx *structs.AppCtx, placeholders map[string]int64, ...) (map[string]int64, error)
- func (r *RequestHttp) UpdateMessage(ctx context.Context, appCtx *structs.AppCtx, param map[string]interface{}) error
- func (r *RequestHttp) UpdateRecord(ctx context.Context, appCtx *structs.AppCtx, objectAPIName string, ...) error
- func (r *RequestHttp) UpdateRecordV2(ctx context.Context, appCtx *structs.AppCtx, objectAPIName string, ...) error
- func (r *RequestHttp) UploadAvatar(ctx context.Context, appCtx *structs.AppCtx, fileName string, ...) (*structs.Avatar, error)
- func (r *RequestHttp) UploadFile(ctx context.Context, appCtx *structs.AppCtx, fileName string, ...) (*structs.Attachment, error)
- func (r *RequestHttp) UploadFileV2(ctx context.Context, appCtx *structs.AppCtx, fileName string, ...) (*structs.FileUploadResult, error)
Constants ¶
View Source
const ( // PathGetRecordsV2 新版接口 PathGetRecordsV2 = "/api/data/v1/namespaces/:namespace/objects/:objectAPIName/records" PathCreateRecordV2 = "/api/data/v1/namespaces/:namespace/objects/:objectAPIName" PathBatchCreateRecordV2 = "/api/data/v1/namespaces/:namespace/objects/:objectAPIName/batchCreate" PathUpdateRecordV2 = "/api/data/v1/namespaces/:namespace/objects/:objectAPIName/:recordID" PathBatchUpdateRecordV2 = "/api/data/v1/namespaces/:namespace/objects/:objectAPIName/batchUpdate" PathDeleteRecordV2 = "/api/data/v1/namespaces/:namespace/objects/:objectAPIName/:recordID" PathBatchDeleteRecordV2 = "/api/data/v1/namespaces/:namespace/objects/:objectAPIName/batchDelete" PathUploadFileV2 = "/api/attachment/v1/files" PathUploadAvatar = "/api/attachment/v1/images" PathDownloadFileV2 = "/api/attachment/v1/files/:fileID" PathDownloadAvatar = "/api/attachment/v1/images/:fileID" // PathGetRecords 老版接口 PathGetRecords = "/generic/data/v3/namespaces/:namespace/objects/:objectAPIName/mGetByCriterion" PathTransaction = "/generic/datax/v2/namespaces/:namespace/records/_modify_with_transaction" PathOql = "/data/v5/namespaces/:namespace/records/query" PathCreateRecord = "/generic/data/v2/namespaces/:namespace/objects/:objectAPIName/createBySync" PathBatchCreateRecord = "/generic/data/v2/namespaces/:namespace/objects/:objectAPIName/batchCreate" PathBatchCreateRecordAsync = "/generic/data/v2/namespaces/:namespace/objects/:objectAPIName/batchCreateByAsync" PathUpdateRecord = "/generic/data/v2/namespaces/:namespace/objects/:objectAPIName/updateBySync" PathBatchUpdateRecord = "/generic/data/v2/namespaces/:namespace/objects/:objectAPIName/batchUpdate" PathBatchUpdateRecordAsync = "/generic/data/v2/namespaces/:namespace/objects/:objectAPIName/batchUpdateByAsync" PathDeleteRecord = "/generic/data/v2/namespaces/:namespace/objects/:objectAPIName/deleteBySync" PathBatchDeleteRecord = "/generic/data/v2/namespaces/:namespace/objects/:objectAPIName/batchDelete" PathBatchDeleteRecordAsync = "/generic/data/v2/namespaces/:namespace/objects/:objectAPIName/batchDeleteByAsync" PathUploadFile = "/attachment/v2/upload" PathDownloadFile = "/attachment/v1/download" PathCreateMessage = "/msg/v4/namespaces/:namespace/message_center/notify_task/create" PathUpdateMessage = "/msg/v4/namespaces/:namespace/message_center/notify_task/update" PathGetAllGlobalConfig = "/generic/globalconfig/v1/namespaces/:namespace/getAllConfigs" PathGetField = "/metadata/v5/namespaces/:namespace/objects/:objectAPIName/fields/:fieldAPIName" PathGetFields = "/metadata/v5/namespaces/:namespace/objects/:objectAPIName/describe" PathMGetUserSettings = "/setting/v1/users" PathInvokeFunctionWithAuth = "/api/cloudfunction/v1/namespaces/:namespace/invoke/:functionAPIName" PathInvokeFunctionAsync = "/faasAsyncTask/v1/namespaces/:namespace/asyncTask/CreateAsyncTask" PathGetTaskListByExecutionID = "/api/flow/v1/namespaces/:namespace/executions/:executionId/userTaskInfo" PathGetExecutionInfo = "/api/flow/v1/namespaces/:namespace/executions/:executionId/detail" PathRevokeExecution = "/api/flow/v1/namespaces/:namespace/executions/:executionId/revoke" PathExecuteFlow = "/api/flow/v1/namespaces/:namespace/flows/:apiName/execute" PathDefaultTenantAccessToken = "/api/integration/v1/namespaces/:namespace/defaultLark/tenantAccessToken" PathDefaultAppAccessToken = "/api/integration/v1/namespaces/:namespace/defaultLark/appAccessToken" PathAppAccessToken = "/api/integration/v1/namespaces/:namespace/lark/appAccessToken/:apiName" PathTenantAccessToken = "/api/integration/v1/namespaces/:namespace/lark/tenantAccessToken/:apiName" PathGetApprovalInstanceList = "/api/approval/v1/approval_instances/listids" PathGetApprovalInstance = "/api/approval/v1/approval_instances/:recordID" )
Variables ¶
This section is empty.
Functions ¶
func GetAppAccessTokenPath ¶ added in v0.0.23
func GetDefaultAppAccessTokenPath ¶ added in v0.0.23
func GetDefaultTenantAccessTokenPath ¶ added in v0.0.23
func GetGetApprovalInstancePath ¶ added in v0.0.32
func GetPathCreateMessage ¶
func GetPathCreateRecord ¶
func GetPathCreateRecordV2 ¶
func GetPathDeleteRecord ¶
func GetPathDeleteRecordV2 ¶
func GetPathDownloadAvatar ¶
func GetPathDownloadFile ¶
func GetPathDownloadFile() string
func GetPathDownloadFileV2 ¶
func GetPathExecuteFlow ¶
func GetPathGetExecutionInfo ¶
func GetPathGetField ¶
func GetPathGetFields ¶
func GetPathGetRecords ¶
GetPathGetRecords 老版接口
func GetPathGetRecordsV2 ¶
GetPathGetRecordsV2 新版接口
func GetPathMGetUserSettings ¶
func GetPathMGetUserSettings() string
func GetPathOql ¶
func GetPathRevokeExecution ¶
func GetPathTransaction ¶
func GetPathUpdateMessage ¶
func GetPathUpdateRecord ¶
func GetPathUpdateRecordV2 ¶
func GetTenantAccessTokenPath ¶ added in v0.0.23
Types ¶
type RequestHttp ¶
type RequestHttp struct{}
func (*RequestHttp) BatchCreateRecord ¶
func (*RequestHttp) BatchCreateRecordAsync ¶
func (*RequestHttp) BatchCreateRecordV2 ¶
func (*RequestHttp) BatchDeleteRecord ¶
func (r *RequestHttp) BatchDeleteRecord(ctx context.Context, appCtx *structs.AppCtx, objectAPIName string, recordIDs []int64) (*structs.BatchResult, error)
func (*RequestHttp) BatchDeleteRecordAsync ¶
func (*RequestHttp) BatchDeleteRecordV2 ¶
func (*RequestHttp) BatchUpdateRecord ¶
func (r *RequestHttp) BatchUpdateRecord(ctx context.Context, appCtx *structs.AppCtx, objectAPIName string, records map[int64]interface{}) (*structs.BatchResult, error)
func (*RequestHttp) BatchUpdateRecordAsync ¶
func (*RequestHttp) BatchUpdateRecordV2 ¶
func (*RequestHttp) CreateMessage ¶
func (*RequestHttp) CreateRecord ¶
func (*RequestHttp) CreateRecordV2 ¶
func (*RequestHttp) DeleteRecord ¶
func (*RequestHttp) DeleteRecordV2 ¶
func (*RequestHttp) DownloadAvatar ¶
func (*RequestHttp) DownloadFile ¶
func (*RequestHttp) Execute ¶
func (r *RequestHttp) Execute(ctx context.Context, appCtx *structs.AppCtx, APIName string, options *structs.ExecuteOptions) (invokeResult *structs.FlowExecuteResult, err error)
func (*RequestHttp) GetAllGlobalConfig ¶ added in v0.0.22
func (r *RequestHttp) GetAllGlobalConfig(ctx context.Context, appCtx *structs.AppCtx) (map[string]string, error)
GetAllGlobalConfig
func (*RequestHttp) GetAppAccessToken ¶ added in v0.0.23
func (r *RequestHttp) GetAppAccessToken(ctx context.Context, appCtx *structs.AppCtx, apiName string) (*structs.AppAccessToken, error)
func (*RequestHttp) GetApprovalInstance ¶ added in v0.0.32
func (r *RequestHttp) GetApprovalInstance(ctx context.Context, appCtx *structs.AppCtx, options *structs.GetApprovalInstanceOptions) (*structs.ApprovalInstance, error)
func (*RequestHttp) GetApprovalInstanceList ¶ added in v0.0.32
func (r *RequestHttp) GetApprovalInstanceList(ctx context.Context, appCtx *structs.AppCtx, options *structs.ApprovalInstanceListOptions) (approvalInstanceList *structs.ApprovalInstanceList, err error)
func (*RequestHttp) GetDefaultAppAccessToken ¶ added in v0.0.23
func (r *RequestHttp) GetDefaultAppAccessToken(ctx context.Context, appCtx *structs.AppCtx) (*structs.AppAccessToken, error)
func (*RequestHttp) GetDefaultTenantAccessToken ¶ added in v0.0.23
func (r *RequestHttp) GetDefaultTenantAccessToken(ctx context.Context, appCtx *structs.AppCtx) (*structs.TenantAccessToken, error)
func (*RequestHttp) GetExecutionInfo ¶
func (r *RequestHttp) GetExecutionInfo(ctx context.Context, appCtx *structs.AppCtx, executionID int64) (instanceInfo *structs.ExecutionInfo, err error)
func (*RequestHttp) GetExecutionUserTaskInfo ¶
func (*RequestHttp) GetRecordCount ¶
func (r *RequestHttp) GetRecordCount(ctx context.Context, appCtx *structs.AppCtx, objectAPIName string, param *structs.GetRecordsReqParam) (int64, error)
func (*RequestHttp) GetRecordCountV2 ¶
func (r *RequestHttp) GetRecordCountV2(ctx context.Context, appCtx *structs.AppCtx, objectAPIName string, param *structs.GetRecordsReqParamV2) (int64, error)
func (*RequestHttp) GetRecords ¶
func (r *RequestHttp) GetRecords(ctx context.Context, appCtx *structs.AppCtx, objectAPIName string, param *structs.GetRecordsReqParam, records interface{}) ([][]string, error)
func (*RequestHttp) GetRecordsV2 ¶
func (r *RequestHttp) GetRecordsV2(ctx context.Context, appCtx *structs.AppCtx, objectAPIName string, param *structs.GetRecordsReqParamV2, records interface{}) ([][]string, error)
func (*RequestHttp) GetTenantAccessToken ¶ added in v0.0.23
func (r *RequestHttp) GetTenantAccessToken(ctx context.Context, appCtx *structs.AppCtx, apiName string) (*structs.TenantAccessToken, error)
func (*RequestHttp) GetTenantInfo ¶
func (*RequestHttp) InvokeFunctionAsync ¶
func (*RequestHttp) InvokeFunctionWithAuth ¶
func (*RequestHttp) MGetUserSettings ¶
func (*RequestHttp) RevokeExecution ¶
func (r *RequestHttp) RevokeExecution(ctx context.Context, appCtx *structs.AppCtx, executionID int64, options *structs.RevokeOptions) error
func (*RequestHttp) Transaction ¶
func (*RequestHttp) UpdateMessage ¶
func (*RequestHttp) UpdateRecord ¶
func (*RequestHttp) UpdateRecordV2 ¶
func (*RequestHttp) UploadAvatar ¶
func (*RequestHttp) UploadFile ¶
func (*RequestHttp) UploadFileV2 ¶
Click to show internal directories.
Click to hide internal directories.