add title errcode
This commit is contained in:
parent
f26c9c0528
commit
cd0d1595b8
@ -5,6 +5,7 @@ const (
|
||||
ErrAnimal
|
||||
ErrUser
|
||||
ErrEncounter
|
||||
ErrNlp
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -10,6 +10,7 @@ func init() {
|
||||
AnimalMsgInit(ErrMsg)
|
||||
UserMsgInit(ErrMsg)
|
||||
EnocunterMsgInit(ErrMsg)
|
||||
NlpMsgInit(ErrMsg)
|
||||
}
|
||||
|
||||
func GeneralMsgInit(m msg) {
|
||||
|
9
app/global/errcode/nlp.go
Normal file
9
app/global/errcode/nlp.go
Normal file
@ -0,0 +1,9 @@
|
||||
package errcode
|
||||
|
||||
const (
|
||||
ErrNoContent = ErrNlp + iota
|
||||
)
|
||||
|
||||
func NlpMsgInit(m msg) {
|
||||
m[ErrNoContent] = "内容为空"
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user