openapi

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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 DeleteRecordById(objectApiName string, recordId int64) error

func DownloadFile

func DownloadFile(fileId string) ([]byte, error)

func GetRecordById

func GetRecordById(objectApiName string, recordId int64) (interface{}, error)

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

func UploadFile(fileName string, fileReader io.Reader) (*structs.FileUploadResult, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL