update structure

This commit is contained in:
Adrien Marquès 2018-07-08 10:00:17 +02:00
parent fbb06c99a1
commit ba8d73aa8c
6 changed files with 2 additions and 70 deletions

View File

@ -1,7 +1,7 @@
package main
import (
"git.xdrm.io/example/aicra/root/db"
"git.xdrm.io/example/aicra/controller/db"
e "git.xdrm.io/go/aicra/err"
i "git.xdrm.io/go/aicra/implement"
)

View File

@ -1,4 +1,4 @@
package main
package aicraserver
import (
"git.xdrm.io/go/aicra"

View File

@ -1,32 +0,0 @@
package main
import (
"fmt"
e "git.xdrm.io/go/aicra/err"
i "git.xdrm.io/go/aicra/implement"
)
func Get(d i.Arguments, r *i.Response) i.Response {
fmt.Printf("GET /user/post\n")
r.Set("method_test", "Get")
r.Err = e.Upload
return *r
}
func Post(d i.Arguments, r *i.Response) i.Response {
fmt.Printf("POST /user/post\n")
r.Set("method_test", "Post")
r.Err = e.Download
return *r
}
func Put(d i.Arguments, r *i.Response) i.Response {
fmt.Printf("PUT /user/post\n")
r.Set("method_test", "Put")
r.Err = e.MissingDownloadHeaders
return *r
}
func Delete(d i.Arguments, r *i.Response) i.Response {
fmt.Printf("DELETE /user/post\n")
r.Set("method_test", "Delete")
r.Err = e.MissingDownloadBody
return *r
}

View File

@ -1,36 +0,0 @@
package main
import (
"fmt"
e "git.xdrm.io/go/aicra/err"
i "git.xdrm.io/go/aicra/implement"
)
func Get(d i.Arguments, r *i.Response) i.Response {
fmt.Printf("GET /user\n")
r.Set("method_test", "Get")
r.Set("received_data", d)
r.Err = e.Upload
return *r
}
func Post(d i.Arguments, r *i.Response) i.Response {
fmt.Printf("POST /user\n")
r.Set("method_test", "Post")
r.Set("received_data", d)
r.Err = e.Download
return *r
}
func Put(d i.Arguments, r *i.Response) i.Response {
fmt.Printf("PUT /user\n")
r.Set("method_test", "Put")
r.Set("received_data", d)
r.Err = e.MissingDownloadHeaders
return *r
}
func Delete(d i.Arguments, r *i.Response) i.Response {
fmt.Printf("DELETE /user\n")
r.Set("method_test", "Delete")
r.Set("received_data", d)
r.Err = e.MissingDownloadBody
return *r
}