Documentation ¶
Index ¶
- Constants
- func CreateRecord(objectApiName string, record interface{}) (*structs.RecordOnlyId, error)
- func DeleteRecordById(objectApiName string, recordId int64) error
- func DownloadFile(fileId string) ([]byte, error)
- func GetRecordById(objectApiName string, recordId int64) (interface{}, error)
- func GetRecords(objectApiName string, param *structs.GetRecordsParam) ([]interface{}, error)
- func UpdateRecord(objectApiName string, recordId int64, record interface{}) (*structs.RecordOnlyId, error)
- func UploadFile(fileName string, fileReader io.Reader) (*structs.FileUploadResult, error)
Constants ¶
View Source
const ( OpenapiSuccessCode_FileDownload = "" OpenapiSuccessCode_Success = "0" OpenapiErrorCode_InternalError = "k_ec_000001" OpenapiErrorCode_NoTenantID = "k_ec_000002" OpenapiErrorCode_NoUserID = "k_ec_000003" OpenapiErrorCode_UnknownError = "k_ec_000004" OpenapiErrorCode_OpUnknownError = "k_op_ec_00001" OpenapiErrorCode_SystemBusy = "k_op_ec_20001" OpenapiErrorCode_SystemError = "k_op_ec_20002" OpenapiErrorCode_RateLimitError = "k_op_ec_20003" OpenapiErrorCode_TokenExpire = "k_ident_013000" OpenapiErrorCode_IllegalToken = "k_ident_013001" OpenapiErrorCode_MissingToken = "k_op_ec_10205" )
Variables ¶
This section is empty.
Functions ¶
func CreateRecord ¶
func CreateRecord(objectApiName string, record interface{}) (*structs.RecordOnlyId, error)
func DeleteRecordById ¶
func DownloadFile ¶
func GetRecordById ¶
func GetRecords ¶
func GetRecords(objectApiName string, param *structs.GetRecordsParam) ([]interface{}, error)
func UpdateRecord ¶
func UpdateRecord(objectApiName string, recordId int64, record interface{}) (*structs.RecordOnlyId, error)
func UploadFile ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.