Add: blog model struct
This commit is contained in:
parent
a51a0c4e12
commit
6b84f3aefa
1 changed files with 8 additions and 0 deletions
8
simple-blog/server/model/blog.go
Normal file
8
simple-blog/server/model/blog.go
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
package model
|
||||||
|
|
||||||
|
type Blog struct {
|
||||||
|
ID int `json:"id"`
|
||||||
|
Title string `json:"title"`
|
||||||
|
CoverURL string `json:"coverURL"`
|
||||||
|
Body string `json:"body"`
|
||||||
|
}
|
Loading…
Reference in a new issue