Files
full/module/ec/mall/internal/logic/freight/fetch.go

30 lines
693 B
Go
Raw Normal View History

package freight
import (
"context"
pb "bsm/full/module/ec/mall/pb"
2026-09-22 21:15:34 +08:00
"git.apinb.com/bsm-sdk/core/errcode"
"git.apinb.com/bsm-sdk/core/service"
)
// Freight 运费模板列表
func Fetch(ctx context.Context, in *pb.MallFetchRequest) (reply *pb.FreightReply, err error) {
// parse authorization meta.
_, err = service.ParseMetaCtx(ctx, &service.ParseOptions{RoleValue: "Mall_Admin"})
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
}
2026-09-22 21:15:34 +08:00
// 该接口尚未实现,显式返回未实现错误,避免调用方误判成功。
return nil, errcode.ErrUnimplemented
}