检测用户是否已登录
()
| 449 | |
| 450 | // 检测用户是否已登录 |
| 451 | func (this *UserController) CheckLogin() { |
| 452 | if this.BaseController.IsLogin > 0 { |
| 453 | this.ResponseJson(true, "已登录") |
| 454 | } |
| 455 | this.ResponseJson(false, "您当前处于未登录状态,请先登录") |
| 456 | } |
| 457 | |
| 458 | // 创建收藏夹 |
| 459 | func (this *UserController) CreateCollectFolder() { |
nothing calls this directly
no test coverage detected