|
@@ -1,15 +1,13 @@
|
|
|
package api
|
|
|
|
|
|
-import "github.com/gin-gonic/gin"
|
|
|
+// func Test(r *GinRouter) {
|
|
|
+// r.POST("/test/upload", ImageUpload)
|
|
|
|
|
|
-func Test(r *GinRouter) {
|
|
|
- r.POST("/test/upload", ImageUpload)
|
|
|
+// }
|
|
|
|
|
|
-}
|
|
|
+// func ImageUpload(c *gin.Context, apictx *ApiSession) (interface{}, error) {
|
|
|
|
|
|
-func ImageUpload(c *gin.Context, apictx *ApiSession) (interface{}, error) {
|
|
|
-
|
|
|
- orginPath := "images"
|
|
|
- obsPath := "test/spin_360_orgin"
|
|
|
- return uploadImage(orginPath, obsPath)
|
|
|
-}
|
|
|
+// orginPath := "images"
|
|
|
+// obsPath := "test/spin_360_orgin"
|
|
|
+// return uploadImage(orginPath, obsPath)
|
|
|
+// }
|