36 lines
736 B
Go
36 lines
736 B
Go
package model
|
|
|
|
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" 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 {
|
|
Page int
|
|
Size int
|
|
UserId int64
|
|
Status int
|
|
}
|
|
type FeedbackListOut struct {
|
|
Total int
|
|
List []Feedback
|
|
}
|
|
|
|
type FeedbackAddIn struct {
|
|
UserId int64
|
|
Content string
|
|
}
|
|
type FeedbackCRUDOut struct {
|
|
Success bool
|
|
}
|