refactor: migration idp api (#1842)

* refactor: migration idp api

* chore: update
This commit is contained in:
boojack
2023-06-17 22:35:17 +08:00
committed by GitHub
parent 4ed9a3a0ea
commit b34aded376
12 changed files with 410 additions and 119 deletions

24
api/v1/common.go Normal file
View File

@ -0,0 +1,24 @@
package v1
// UnknownID is the ID for unknowns.
const UnknownID = -1
// RowStatus is the status for a row.
type RowStatus string
const (
// Normal is the status for a normal row.
Normal RowStatus = "NORMAL"
// Archived is the status for an archived row.
Archived RowStatus = "ARCHIVED"
)
func (e RowStatus) String() string {
switch e {
case Normal:
return "NORMAL"
case Archived:
return "ARCHIVED"
}
return ""
}