初始化项目框架,完成部分接口开发
This commit is contained in:
33
internal/model/user_follow_author.go
Normal file
33
internal/model/user_follow_author.go
Normal file
@ -0,0 +1,33 @@
|
||||
package model
|
||||
|
||||
import "github.com/gogf/gf/v2/frame/g"
|
||||
|
||||
type UserFollowAuthor struct {
|
||||
g.Meta `orm:"table:user_follow_authors"`
|
||||
Id int64 `json:"id"`
|
||||
UserId int64 `json:"userId"`
|
||||
AuthorId int64 `json:"authorId"`
|
||||
FollowedAt int64 `json:"followedAt"`
|
||||
}
|
||||
|
||||
type UserFollowAuthorListIn struct {
|
||||
Page int
|
||||
Size int
|
||||
UserId int64
|
||||
AuthorId int64
|
||||
}
|
||||
type UserFollowAuthorListOut struct {
|
||||
Total int
|
||||
List []UserFollowAuthor
|
||||
}
|
||||
|
||||
type UserFollowAuthorAddIn struct {
|
||||
UserId int64
|
||||
AuthorId int64
|
||||
}
|
||||
type UserFollowAuthorDelIn struct {
|
||||
Id int64
|
||||
}
|
||||
type UserFollowAuthorCRUDOut struct {
|
||||
Success bool
|
||||
}
|
||||
Reference in New Issue
Block a user