package post

import (
	"context"

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

// 评论列表
func CommentList(ctx context.Context, in *pb.FetchRequest) (reply *pb.CommentListReply, 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
}
