Teamlinker/code/common/status/error.ts
sx1989827 1d9d60d5b8 aa
2022-01-20 00:15:17 +08:00

200 lines
4.7 KiB
TypeScript

export namespace Err {
export let Common = {
paramError:{
code:1,
msg:"param error"
},
mysqlError:{
code:2,
msg:"mysql error"
},
itemNotFound:{
code:3,
msg:"item not found"
},
itemExists:{
code:4,
msg:"item exists"
}
}
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"
},
Tag:{
tagSizeEmpty:{
code:3100,
msg:"tag size empty"
}
},
Module:{
moduleNotFound:{
code:3200,
msg:"module not found"
}
},
Member:{
memberExists:{
code:3300,
msg:"member exists"
},
memberNotExists:{
code:3301,
msg:"member not exists"
},
memberNotMatch:{
code:3302,
msg:"member not match"
}
},
Issue : {
issueTypeNotFound:{
code:3400,
msg:"issue type not found"
},
issueTypeForbidden:{
code:3401,
msg:"issue type forbidden"
},
issueTypeSolutionExists :{
code:3402,
msg:"issue type solution exists"
},
issueTypeSolutionNotFound:{
code:3403,
msg:"issue type solution not found"
},
issueTypeSolutionForbidden:{
code:3404,
msg:"issue type solution forbidden"
},
},
Workflow:{
workflowNotFound:{
code:3500,
msg:"workflow not found"
},
workflowForbidden:{
code:3501,
msg:"workflow forbidden"
},
workflowNodeNotFound:{
code:3502,
msg:"workflow node not found"
},
workflowNodeForbidden:{
code:3503,
msg:"workflow node forbidden"
},
workflowActionNotFound:{
code:3504,
msg:"workflow action not found"
},
workflowActionForbidden:{
code:3505,
msg:"workflow action forbidden"
},
workflowSolutionNotFound:{
code:3506,
msg:"workflow solution not found"
},
workflowSolutionForbidden:{
code:3507,
msg:"workflow solution forbidden"
},
workflowOpenNodeDuplicate:{
code:3508,
msg:"workflow open node duplicate"
},
}
}
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"
}
}
export let File ={
fileNotFound:{
code:6000,
msg:"file not found"
},
md5NotExists:{
code:6001,
msg:"md5 not exists"
}
}
}