2024-08-28 09:09:01 +00:00
|
|
|
package postservicelogic
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
2024-08-28 14:29:42 +00:00
|
|
|
"app-cloudep-tweeting-service/gen_result/pb/tweeting"
|
|
|
|
"app-cloudep-tweeting-service/internal/svc"
|
2024-08-28 09:09:01 +00:00
|
|
|
|
|
|
|
"github.com/zeromicro/go-zero/core/logx"
|
|
|
|
)
|
|
|
|
|
|
|
|
type UpdatePostLogic struct {
|
|
|
|
ctx context.Context
|
|
|
|
svcCtx *svc.ServiceContext
|
|
|
|
logx.Logger
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewUpdatePostLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdatePostLogic {
|
|
|
|
return &UpdatePostLogic{
|
|
|
|
ctx: ctx,
|
|
|
|
svcCtx: svcCtx,
|
|
|
|
Logger: logx.WithContext(ctx),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// UpdatePost 更新貼文
|
2024-08-28 14:24:47 +00:00
|
|
|
func (l *UpdatePostLogic) UpdatePost(in *tweeting.UpdatePostReq) (*tweeting.OKResp, error) {
|
2024-08-28 09:09:01 +00:00
|
|
|
// todo: add your logic here and delete this line
|
|
|
|
|
2024-08-28 14:24:47 +00:00
|
|
|
return &tweeting.OKResp{}, nil
|
2024-08-28 09:09:01 +00:00
|
|
|
}
|