17 lines
457 B
Go
17 lines
457 B
Go
package api_feature
|
|
|
|
// FetchStatus 数据获取状态
|
|
type FetchStatus string
|
|
|
|
const (
|
|
FetchStatusPending FetchStatus = "pending" // 待执行
|
|
FetchStatusRunning FetchStatus = "running" // 执行中
|
|
FetchStatusSuccess FetchStatus = "success" // 成功
|
|
FetchStatusFailed FetchStatus = "failed" // 失败
|
|
FetchStatusRateLimit FetchStatus = "rate_limit" // 触发限流
|
|
)
|
|
|
|
func (f FetchStatus) String() string {
|
|
return string(f)
|
|
}
|