package tag

import (
	"context"

	pb "bsm/full/module/social/feed/pb"
	"git.apinb.com/bsm-sdk/core/service"
)

// 话题相关的文章
func PostList(ctx context.Context, in *pb.FetchRequest) (reply *pb.PostListReply, err error) {
	// parse authorization meta.
	_, err = service.ParseMetaCtx(ctx, nil)
	if err != nil {
		return nil, err
	}

	// valildate request page_no,page_size.
	if in.GetPageNo() < 1 {
		in.PageNo = 1
	}
	if in.GetPageSize() < 10 {
		in.PageSize = 50
	}

	// TODO: add your logic code & delete this line.

	return
}
