mirror of
https://github.com/usual2970/certimate.git
synced 2025-10-05 22:14:53 +00:00
Add workflow execution process
This commit is contained in:
@@ -1,6 +1,16 @@
|
||||
package domain
|
||||
|
||||
var ErrAuthFailed = NewXError(4999, "auth failed")
|
||||
var (
|
||||
ErrInvalidParams = NewXError(400, "invalid params")
|
||||
ErrRecordNotFound = NewXError(404, "record not found")
|
||||
)
|
||||
|
||||
func IsRecordNotFound(err error) bool {
|
||||
if e, ok := err.(*XError); ok {
|
||||
return e.GetCode() == ErrRecordNotFound.GetCode()
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
type XError struct {
|
||||
Code int `json:"code"`
|
||||
|
Reference in New Issue
Block a user