27 lines
628 B
Go
27 lines
628 B
Go
package freight
|
|
|
|
import (
|
|
"context"
|
|
|
|
pb "bsm/full/module/ec/mall/pb"
|
|
"git.apinb.com/bsm-sdk/core/errcode"
|
|
"git.apinb.com/bsm-sdk/core/service"
|
|
)
|
|
|
|
// 运费模板删除
|
|
func Delete(ctx context.Context, in *pb.IdentRequest) (reply *pb.IdentityStatusReply, err error) {
|
|
// parse authorization meta.
|
|
_, err = service.ParseMetaCtx(ctx, nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
// valildate request id,identity.
|
|
if in.Id == 0 && in.Identity == "" {
|
|
return nil, errcode.ErrInvalidArgument
|
|
}
|
|
|
|
// 该接口尚未实现,显式返回未实现错误,避免调用方误判成功。
|
|
return nil, errcode.ErrUnimplemented
|
|
}
|