fix: send issues

This commit is contained in:
Rogee
2025-05-21 21:30:15 +08:00
parent 69ac9ddd9c
commit 998941511f

View File

@@ -224,7 +224,7 @@ func (m *postsModel) DeleteByID(ctx context.Context, id int64) error {
} }
// SendTo // SendTo
func (m *postsModel) SendTo(ctx context.Context, userId, postId int64) error { func (m *postsModel) SendTo(ctx context.Context, postId, userId int64) error {
// add record to user_posts // add record to user_posts
tbl := table.UserPosts tbl := table.UserPosts
stmt := tbl.INSERT(tbl.MutableColumns).MODEL(model.UserPosts{ stmt := tbl.INSERT(tbl.MutableColumns).MODEL(model.UserPosts{