33 lines
676 B
Go
33 lines
676 B
Go
package freight
|
|
|
|
import (
|
|
pb "bsm/full/module/ec/mall/pb"
|
|
"context"
|
|
"git.apinb.com/bsm-sdk/core/errcode"
|
|
"git.apinb.com/bsm-sdk/core/service"
|
|
"time"
|
|
)
|
|
|
|
// 移除限制区域
|
|
func DenyRegionDelete(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
|
|
}
|
|
|
|
// TODO: add your logic code & delete this line.
|
|
|
|
return &pb.IdentityStatusReply{
|
|
Code: 0,
|
|
Message: "OK",
|
|
Timeseq: time.Now().UnixNano(),
|
|
}, nil
|
|
|
|
}
|