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" ) // Info 查询SIM卡诊断信息 func (c *ControllerV1) TSimDiagnoseInfo(ctx context.Context, req *v1.TSimDiagnoseInfoReq) (res *v1.TSimDiagnoseInfoRes, err error) { output, err := service.IotTSimDiagnose().Info(ctx, &req.TSimDiagnoseInfoReq) if err != nil { return } res = &v1.TSimDiagnoseInfoRes{TSimDiagnoseInfoOutput: output} return res, nil } // Flow 查询SIM卡使用流量 func (c *ControllerV1) TSimDiagnoseFlow(ctx context.Context, req *v1.TSimDiagnoseFlowReq) (res *v1.TSimDiagnoseFlowRes, err error) { output, err := service.IotTSimDiagnose().Flow(ctx, &req.TSimDiagnoseFlowReq) if err != nil { return } res = &v1.TSimDiagnoseFlowRes{TSimDiagnoseFlowOutput: output} return res, nil }