初始化项目框架,完成部分接口开发
This commit is contained in:
30
internal/model/feedback.go
Normal file
30
internal/model/feedback.go
Normal file
@ -0,0 +1,30 @@
|
||||
package model
|
||||
|
||||
import "github.com/gogf/gf/v2/frame/g"
|
||||
|
||||
type Feedback struct {
|
||||
g.Meta `orm:"table:feedbacks"`
|
||||
Id int64 `json:"id"`
|
||||
UserId int64 `json:"userId"`
|
||||
Content string `json:"content"`
|
||||
Status int `json:"status"`
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user