32 lines
		
	
	
		
			735 B
		
	
	
	
		
			Go
		
	
	
	
		
		
			
		
	
	
			32 lines
		
	
	
		
			735 B
		
	
	
	
		
			Go
		
	
	
	
|  | package timelineservicelogic | ||
|  | 
 | ||
|  | import ( | ||
|  | 	"context" | ||
|  | 
 | ||
|  | 	"app-cloudep-tweeting-service/gen_result/pb/tweeting" | ||
|  | 	"app-cloudep-tweeting-service/internal/svc" | ||
|  | 
 | ||
|  | 	"github.com/zeromicro/go-zero/core/logx" | ||
|  | ) | ||
|  | 
 | ||
|  | type GetTimelineLogic struct { | ||
|  | 	ctx    context.Context | ||
|  | 	svcCtx *svc.ServiceContext | ||
|  | 	logx.Logger | ||
|  | } | ||
|  | 
 | ||
|  | func NewGetTimelineLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetTimelineLogic { | ||
|  | 	return &GetTimelineLogic{ | ||
|  | 		ctx:    ctx, | ||
|  | 		svcCtx: svcCtx, | ||
|  | 		Logger: logx.WithContext(ctx), | ||
|  | 	} | ||
|  | } | ||
|  | 
 | ||
|  | // GetTimeline 取得這個人的動態時報
 | ||
|  | func (l *GetTimelineLogic) GetTimeline(in *tweeting.GetTimelineReq) (*tweeting.GetTimelineResp, error) { | ||
|  | 	// todo: add your logic here and delete this line
 | ||
|  | 
 | ||
|  | 	return &tweeting.GetTimelineResp{}, nil | ||
|  | } |