NotLogin 未登录
()
| 56 | |
| 57 | // NotLogin 未登录 |
| 58 | func (e *APIError) NotLogin() *APIError { |
| 59 | return e.dup().appendCode(http.StatusUnauthorized, "NotLogin"). |
| 60 | appendLocaleTemplate(templateNotLogin) |
| 61 | } |
| 62 | |
| 63 | // AccessDenied 无权限 |
| 64 | func (e *APIError) AccessDenied() *APIError { |
nothing calls this directly
no test coverage detected