Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Post ¶
type Post struct { Id int `json:"id"` Mobile string `json:"mobile"` UserName string `json:"userName"` Gender string `json:"gender"` Addr string `json:"addr"` Email string `json:"email"` Status int `json:"status"` Description string `json:"description"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` }
type PostService ¶
type PostService interface { GetPostInfo() (user Post, err error) GetPostInfoBySQL() (user Post, err error) CreatePost(user *Post) (err error) UpdatePost(userID int, user *Post) (err error) DeletePost(userID int) (err error) }
func NewService ¶
func NewService(mysql *gorm.DB) PostService
Click to show internal directories.
Click to hide internal directories.