Add: support feedback

This commit is contained in:
2021-12-13 23:18:46 +08:00
parent 22f7ea8476
commit 0c9048072f
9 changed files with 190 additions and 15 deletions

View File

@@ -48,6 +48,15 @@ type Review struct {
Content string `json:"content"`
}
type Feedback struct {
ID int64 `json:"id"`
UserId int64 `json:"user_id"`
User *User `json:"user"`
Content string `json:"content"`
Header string `json:"header"`
Time int64 `json:"time"`
}
var (
RoleAnonymous = int64(0)
RoleAdmin = int64(1)