NotFound 资源不存在
()
| 68 | |
| 69 | // NotFound 资源不存在 |
| 70 | func (e *APIError) NotFound() *APIError { |
| 71 | return e.dup().appendCode(http.StatusNotFound, "NotFound"). |
| 72 | appendLocaleTemplate(templateNotFound) |
| 73 | } |
| 74 | |
| 75 | // Error prompts who has permission for the request |
| 76 | func (e *APIError) AppendAuthorizedRoles(roles []string) *APIError { |
nothing calls this directly
no test coverage detected