(writer http.ResponseWriter, request *http.Request)
| 43 | } |
| 44 | |
| 45 | func (this *ImageCacheController) Detail(writer http.ResponseWriter, request *http.Request) *result.WebResult { |
| 46 | |
| 47 | uuid := request.FormValue("uuid") |
| 48 | if uuid == "" { |
| 49 | panic(result.BadRequest("uuid cannot be null")) |
| 50 | } |
| 51 | |
| 52 | imageCache := this.imageCacheService.Detail(uuid) |
| 53 | |
| 54 | user := this.checkUser(request) |
| 55 | if imageCache.UserUuid != user.Uuid { |
| 56 | panic(result.UNAUTHORIZED) |
| 57 | } |
| 58 | |
| 59 | return this.Success(imageCache) |
| 60 | |
| 61 | } |
| 62 | |
| 63 | func (this *ImageCacheController) Page(writer http.ResponseWriter, request *http.Request) *result.WebResult { |
| 64 |
nothing calls this directly
no test coverage detected