package apis type TryApi struct { Id int64 `orm:"auto,column(id)" json:"id"` Type int `orm:"column(type)" json:"type"` FileName string `orm:"column(file_name)" json:"file_name"` ApiName string `orm:"column(api_name)" json:"api_name"` ApiHost string `orm:"column(api_host)" json:"api_host"` ApiRouter string `orm:"column(api_router)" json:"api_router"` StatusCode int `orm:"column(status)" json:"status_code"` DownloadFile string `orm:"column(download_file)" json:"download_file"` OriginFile string `json:"origin_file"` RequestInfo string `json:"request_info"` CreatedAt string `orm:"column(created_at)" json:"created_at"` UpdatedAt string `orm:"column(updated_at)" json:"updated_at"` TaskName string `json:"task_name"` Merchant string `json:"merchant"` MerchantId int64 `json:"merchant_id"` } func (o *TryApi) TableName() string { return "t_gd_try_api_task" } type ManagementTryBaseApiReq struct { Method string `json:"method"` Router string `json:"router"` Params []ManagementBaseApiParam `json:"request_param"` AppKey string `json:"app_key"` AppSecret string `json:"app_secret"` AppPassword string `json:"app_password"` IsCrypto bool `json:"is_crypto"` EncryptoType int `json:"encrypto_type"` MerchantAccount bool `json:"merchant_account"` } type ManagementTryBaseApiReply struct { Data string `json:"data"` OrderNo string `json:"order_no,omitempty"` } type ManagementBatchTryApiReq struct { TaskId int64 `json:"task_id"` Method string `json:"method"` Router string `json:"router"` Params []string `json:"params"` AppKey string `json:"app_key"` AppSecret string `json:"app_secret"` AppPassword string `json:"app_password"` IsCrypto bool `json:"is_crypto"` MerchantAccount bool `json:"merchant_account"` MultiMode bool `json:"multi_mode"` EncryptoType int `json:"encrypto_type"` } type BatchTryApiParams struct { Requset string `json:"request"` Response string `json:"response"` OriginResponse string `json:"origin_response"` } type ManagementBatchTryApiReply struct { Params []BatchTryApiParams `json:"params"` Stop bool `json:"stop"` } type ManagementUpdateTryApiTaskReq struct { Status int `json:"status"` DownloadFile string `json:"download_file"` TaskId int64 `json:"task_id"` ErrMsg string `json:"err_msg"` } type ManagementUpdateTryApiTaskReply struct { } type ManagementCreateTryApiTaskReq struct { FileName string `json:"file_name"` ApiName string `json:"api_name"` Router string `json:"router"` Method string `json:"method"` DownloadFile string `json:"download_file"` OriginFile string `json:"origin_file"` RequestInfo string `json:"request_info"` AppKey string `json:"app_key"` IsMerchant bool `json:"is_merchant"` TaskName string `json:"task_name"` MerchantId int64 `json:"merchant_id"` } type ManagementCreateTryApiTaskReply struct { Id int64 `json:"id"` } type ManagementGetTryApiTaskListReq struct { IsAll bool `json:"is_all"` PageNumber int `json:"page_number"` PageSize int `json:"page_size"` ApiName string `json:"api_name" in:"query" require:"false"` Type int `json:"type"` MerchantId int64 `json:"merchant_id"` } type TryApiTaskAddReq struct { Type int `json:"type"` FileName string `json:"file_name"` ApiName string `json:"api_name"` ApiHost string `json:"api_host"` ApiRouter string `json:"api_router"` Status int `json:"status"` } type TryApiTaskAddReply struct { Id int64 `json:"id"` } type TryApiTaskUpdateReq struct { Id int64 `json:"id"` Status int `json:"status"` DownloadFile string `json:"download_file"` } type TryApiTaskUpdateReply struct { } type GetTryApiTaskListReq struct { Type int `json:"type"` PageSize int64 `json:"page_size"` PageNumber int64 `json:"page_number"` } type GetTryApiTaskList struct { Id int64 `json:"id"` FileName string `json:"file_name"` ApiName string `json:"api_name"` ApiHost string `json:"api_host"` ApiRouter string `json:"api_router"` Status int `json:"status"` DownloadFile string `json:"download_file"` CreatedAt string `json:"create_at"` UpdatedAt string `json:"update_at"` } type ManagementGetTryApiTaskListReply struct { Total int `json:"total"` PageNumber int `json:"page_number"` PageSize int `json:"page_size"` Tasks []TryApiItem `json:"tasks"` } type ManagementDeleteTryApiTaskReq struct { TaskId int64 `json:"task_id"` } type ManagementDeleteTryApiTaskReply struct { DownloadFile string `json:"download_file"` OriginFile string `json:"origin_file"` TaskType int `json:"task_type"` } type GetTryApiTaskListReply struct { PageSize int64 `json:"page_size"` PageNumber int64 `json:"page_number"` Total int64 `json:"total"` List []GetTryApiTaskList } type TryApiItem struct { Id int64 `json:"id"` FileName string `json:"file_name"` ApiName string `json:"api_name"` ApiHost string `json:"api_host"` ApiRouter string `json:"api_router"` Status string `json:"status"` StatusCode int `json:"status_code"` DownloadFile string `json:"download_file"` CreatedAt string `json:"created_at"` TaskName string `json:"task_name"` Merchant string `json:"merchant"` } type ManagementGetApiTaskReq struct { TaskId int64 `json:"task_id"` } type ManagementGetApiTaskReply struct { Data TryApi `json:"data"` }