Added POST method and form data input and parsing
created the post requests as well as relevant models involved in API responses
This commit is contained in:
5
models/Error.go
Normal file
5
models/Error.go
Normal file
@ -0,0 +1,5 @@
|
||||
package models
|
||||
|
||||
type Error struct {
|
||||
Error string `json:"error"`
|
||||
}
|
15
models/UserReview.go
Normal file
15
models/UserReview.go
Normal file
@ -0,0 +1,15 @@
|
||||
package models
|
||||
|
||||
import "mime/multipart"
|
||||
|
||||
type UserReview struct {
|
||||
FirstName string
|
||||
LastName string
|
||||
ContactNumber string
|
||||
|
||||
Service string
|
||||
Quality int64
|
||||
Recommendation int64
|
||||
Notes string
|
||||
Image *multipart.FileHeader
|
||||
}
|
5
models/Valid.go
Normal file
5
models/Valid.go
Normal file
@ -0,0 +1,5 @@
|
||||
package models
|
||||
|
||||
type Valid struct {
|
||||
Status string `json:"status"`
|
||||
}
|
Reference in New Issue
Block a user