Create 创建帖子,默认状态为草稿
(ctx context.Context, post domain.Post)
| 51 | |
| 52 | // Create 创建帖子,默认状态为草稿 |
| 53 | func (p *postService) Create(ctx context.Context, post domain.Post) (uint, error) { |
| 54 | return p.repo.Create(ctx, post) |
| 55 | } |
| 56 | |
| 57 | // Update 更新帖子,默认状态为草稿 |
| 58 | func (p *postService) Update(ctx context.Context, post domain.Post) error { |