Not impl endpoints
This commit is contained in:
7
server/account/read.go
Normal file
7
server/account/read.go
Normal file
@@ -0,0 +1,7 @@
|
||||
package account
|
||||
|
||||
import "net/http"
|
||||
|
||||
func Read(w http.ResponseWriter, r *http.Request) {
|
||||
http.Error(w, "not impl", http.StatusNotImplemented)
|
||||
}
|
||||
5
server/account/readrequest.go
Normal file
5
server/account/readrequest.go
Normal file
@@ -0,0 +1,5 @@
|
||||
package account
|
||||
|
||||
type ReadRequest struct {
|
||||
Accounts []string `json:"accounts"`
|
||||
}
|
||||
8
server/account/readresponse.go
Normal file
8
server/account/readresponse.go
Normal file
@@ -0,0 +1,8 @@
|
||||
package account
|
||||
|
||||
import "encoding/json"
|
||||
|
||||
type ReadResponse map[string]struct {
|
||||
Name string `json:"name"`
|
||||
Meta json.RawMessage `json:"meta"`
|
||||
}
|
||||
7
server/account/write.go
Normal file
7
server/account/write.go
Normal file
@@ -0,0 +1,7 @@
|
||||
package account
|
||||
|
||||
import "net/http"
|
||||
|
||||
func Write(w http.ResponseWriter, r *http.Request) {
|
||||
http.Error(w, "not impl", http.StatusNotImplemented)
|
||||
}
|
||||
5
server/account/writerequest.go
Normal file
5
server/account/writerequest.go
Normal file
@@ -0,0 +1,5 @@
|
||||
package account
|
||||
|
||||
import "local/cheqbooq/server/transaction"
|
||||
|
||||
type WriteRequest transaction.WriteRequest
|
||||
5
server/account/writeresponse.go
Normal file
5
server/account/writeresponse.go
Normal file
@@ -0,0 +1,5 @@
|
||||
package account
|
||||
|
||||
import "local/cheqbooq/server/transaction"
|
||||
|
||||
type WriteResponse transaction.WriteResponse
|
||||
Reference in New Issue
Block a user