first commit

This commit is contained in:
2022-03-17 15:59:24 +08:00
commit 2b0debb847
592 changed files with 73946 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
package model
import "github.com/pkg/errors"
var (
ErrAuthFiled = errors.New("auth uid failed")
ErrFindUid = errors.New("Failed to find the uid")
ErrWrongDataFormat = errors.New("The data format is wrong")
ErrFieldIsNonexistentInCompareValues = errors.New("CompareValues: field does not exist")
//ErrFieldIsNonexistentInGenerateBodyOfRequest = errors.New("GenerateBodyOfRequest: field does not exist")
ErrParseConfig = errors.New("Failed to parse the configuration")
ErrUnmarshalBodyOfResponse = errors.New("Failed to unmarshal the body of the response")
ErrInvalidRequest = errors.New("The request is invalid")
ErrCheckDigest = errors.New("Failed to check the digest")
ErrQueryKey = errors.New("Failed to query the key")
ErrKeyIsNonexistent = errors.New("The key does not exist")
ErrLoadConfig = errors.New("Failed to query the configuration")
ErrConfigurationIsNonexistent = errors.New("The configuration does not exist")
ErrHTTPCommunication = errors.New("A HTTP communication error has occurred")
ErrInvalidToken = errors.New("The token is Invalid")
)