完善功能
This commit is contained in:
@ -1,13 +1,18 @@
|
||||
package model
|
||||
|
||||
import "github.com/gogf/gf/v2/frame/g"
|
||||
import (
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
)
|
||||
|
||||
type Feedback struct {
|
||||
g.Meta `orm:"table:feedbacks"`
|
||||
Id int64 `json:"id"`
|
||||
UserId int64 `json:"userId"`
|
||||
Content string `json:"content"`
|
||||
Status int `json:"status"`
|
||||
g.Meta `orm:"table:feedbacks"`
|
||||
Id int64 `json:"id" orm:"id"`
|
||||
UserId int64 `json:"userId" orm:"user_id"`
|
||||
Content string `json:"content" orm:"content"`
|
||||
Status int `json:"status" orm:"status"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at"`
|
||||
User User `json:"user" orm:"with:id=user_id"`
|
||||
}
|
||||
|
||||
type FeedbackListIn struct {
|
||||
|
||||
Reference in New Issue
Block a user