add title errcode
This commit is contained in:
parent
f26c9c0528
commit
cd0d1595b8
@ -5,6 +5,7 @@ const (
|
|||||||
ErrAnimal
|
ErrAnimal
|
||||||
ErrUser
|
ErrUser
|
||||||
ErrEncounter
|
ErrEncounter
|
||||||
|
ErrNlp
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -10,6 +10,7 @@ func init() {
|
|||||||
AnimalMsgInit(ErrMsg)
|
AnimalMsgInit(ErrMsg)
|
||||||
UserMsgInit(ErrMsg)
|
UserMsgInit(ErrMsg)
|
||||||
EnocunterMsgInit(ErrMsg)
|
EnocunterMsgInit(ErrMsg)
|
||||||
|
NlpMsgInit(ErrMsg)
|
||||||
}
|
}
|
||||||
|
|
||||||
func GeneralMsgInit(m msg) {
|
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