chore: 并入 iotlcm-admin-svr 历史到 admin-svr/(原提交 49818c6)
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
package iot
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
v1 "git.5iot.com/iotlcm-public/iotlcm-admin-svr/api/iot/v1"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-admin-svr/internal/service"
|
||||
)
|
||||
|
||||
func (c *ControllerV1) TSimCardInboundExcelTemplate(ctx context.Context, req *v1.TSimCardInboundExcelTemplateReq) (res *v1.TSimCardInboundExcelTemplateRes, err error) {
|
||||
err = service.IotTSimCardInbound().DownloadExcelTemplate(ctx)
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (c *ControllerV1) TSimCardInboundExcelSubmit(ctx context.Context, req *v1.TSimCardInboundExcelSubmitReq) (res *v1.TSimCardInboundExcelSubmitRes, err error) {
|
||||
data, err := service.IotTSimCardInbound().SubmitExcel(ctx, &req.TSimCardInboundExcelSubmitParam)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
res = new(v1.TSimCardInboundExcelSubmitRes)
|
||||
res.TSimCardInboundExcelSubmitRes = data
|
||||
return
|
||||
}
|
||||
|
||||
func (c *ControllerV1) TSimCardInboundRangeSubmit(ctx context.Context, req *v1.TSimCardInboundRangeSubmitReq) (res *v1.TSimCardInboundRangeSubmitRes, err error) {
|
||||
data, err := service.IotTSimCardInbound().SubmitRange(ctx, &req.TSimCardInboundRangeSubmitParam)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
res = new(v1.TSimCardInboundRangeSubmitRes)
|
||||
res.TSimCardInboundRangeSubmitRes = data
|
||||
return
|
||||
}
|
||||
|
||||
func (c *ControllerV1) TSimCardInboundInputSubmit(ctx context.Context, req *v1.TSimCardInboundInputSubmitReq) (res *v1.TSimCardInboundInputSubmitRes, err error) {
|
||||
data, err := service.IotTSimCardInbound().SubmitInput(ctx, &req.TSimCardInboundInputSubmitParam)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
res = new(v1.TSimCardInboundInputSubmitRes)
|
||||
res.TSimCardInboundInputSubmitRes = data
|
||||
return
|
||||
}
|
||||
Reference in New Issue
Block a user