mirror of
https://github.com/Teamlinker/Teamlinker.git
synced 2025-06-03 03:00:17 +00:00
96 lines
2.0 KiB
TypeScript
96 lines
2.0 KiB
TypeScript
export namespace Err {
|
|
export let Common = {
|
|
paramError:{
|
|
code:1,
|
|
msg:"param error"
|
|
},
|
|
mysqlError:{
|
|
code:2,
|
|
msg:"mysql error"
|
|
}
|
|
}
|
|
export let User = {
|
|
userNotFound:{
|
|
code:1000,
|
|
msg:"user not found"
|
|
},
|
|
userExists:{
|
|
code:1001,
|
|
msg:"user exists"
|
|
},
|
|
userIdNotExists:{
|
|
code:1002,
|
|
msg:"user id not exists"
|
|
},
|
|
userNameNotExists:{
|
|
code:1003,
|
|
msg:"user not found"
|
|
},
|
|
userPasswordWrong:{
|
|
code:1004,
|
|
msg:"user password wrong"
|
|
},
|
|
notAuth:{
|
|
code:1005,
|
|
msg:"user not auth"
|
|
},
|
|
accessDenied:{
|
|
code:1006,
|
|
msg:"access denied"
|
|
}
|
|
}
|
|
export let Http = {
|
|
overFileSize:{
|
|
code:2000,
|
|
msg:"over file size"
|
|
},
|
|
requireParam:{
|
|
code:2001,
|
|
msg:"require param"
|
|
}
|
|
}
|
|
export let Project = {
|
|
userIdNotExists:{
|
|
code:3000,
|
|
msg:"project id not exists"
|
|
},
|
|
projectNotFound:{
|
|
code:3001,
|
|
msg:"project not found"
|
|
},
|
|
projectExists:{
|
|
code:3002,
|
|
msg:"project exists"
|
|
},
|
|
}
|
|
export let Team = {
|
|
teamNotFound:{
|
|
code:4000,
|
|
msg:"team not found"
|
|
},
|
|
teamExists:{
|
|
code:4001,
|
|
msg:"team exists"
|
|
},
|
|
teamMemberExists:{
|
|
code:4002,
|
|
msg:"team member exists"
|
|
},
|
|
teamMemeberNotExists:{
|
|
code:4003,
|
|
msg:"team member not exists"
|
|
}
|
|
}
|
|
export let Role ={
|
|
roleNotFound:{
|
|
code:5000,
|
|
msg:"role not found"
|
|
},
|
|
roleNotExists:{
|
|
code:5001,
|
|
msg:"role not exists"
|
|
}
|
|
}
|
|
}
|
|
|