123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337 |
- syntax = "proto3";
- // package声明符,用来防止不同的消息类型有命名冲突
- package v1;
- // 用于生成指定语言go的包名称
- option go_package = "smart-supplier-management/pb/v1";
- message DeviceTypeAddRequest {
- int64 provider_id = 1;
- // 设备类型
- int32 device_code = 2;
- // 备注
- string comment = 3;
- // 经办人
- string agent = 4;
- // 经办人电话
- string agent_phone = 5;
- // 诚信经营承诺书
- repeated string appendix = 6;
- }
- message DeviceTypeAddReply {
- }
- message DeviceTypeTestingAddRequest {
- int64 provider_id = 1;
- // 设备类型
- int32 device_code = 2;
- // 备注
- string comment = 3;
- // 经办人
- string agent = 4;
- // 经办人电话
- string agent_phone = 5;
- // 附件
- repeated string appendix = 6;
- }
- message DeviceTypeTestingAddReply {
- }
- message DeviceAddRequest {
- int64 project_id = 1;
- string name = 2;
- string sn = 3;
- string addr = 4;
- int32 type = 5;
- double lon = 6;
- double lat = 7;
- double x_coord = 8;
- double y_coord = 9;
- int64 provider_id = 10;
- string project_code = 11;
- string project_name = 12;
- // 设备型号
- string device_model = 13;
- // 生产厂商
- string manufacturer = 14;
- // 批次
- string batch = 15;
- string sim = 16;
- // 对接单位
- string unit = 17;
- // 联系人
- string person = 18;
- // 联系电话
- string phone = 19;
- // 备注
- string remark = 20;
- // url视屏地址
- string url = 21;
- // 实名制设备类型
- int32 kind = 22;
- // 实名制设备类别
- int32 sub_kind = 23;
- }
- message DeviceAddReply {
- int64 device_id = 1;
- }
- message VedioAddRequest {
- int64 project_id = 1;
- string name = 2;
- int64 provider_id = 3;
- int32 channel_count = 4;
- int32 vedio_type = 5;
- }
- message VedioAddReply {
- int64 vedio_id = 5;
- }
- message ChannelAddRequest {
- string sn = 1;
- int32 channel_count = 2;
- }
- message ChannelAddReply {
- int64 project_id = 1;
- }
- message ChannelUpdateRequest {
- int64 id = 1;
- string name = 2;
- }
- message ChannelUpdateReply {
- int64 project_id = 1;
- }
- message ChannelListRequest {
- int32 page = 1;
- string sn = 2;
- string channel_no = 3;
- }
- message ChannelItem {
- string name = 1;
- int64 id = 2;
- string channel_no = 3;
- int32 state = 4;
- }
- message ChannelListReply {
- repeated ChannelItem list = 1;
- int32 page = 2;
- int64 total = 3;
- int32 page_size = 4;
- }
- message DeviceDelRequest {
- int64 device_id = 1;
- string reason = 2;
- uint32 device_code = 3;
- }
- message DeviceDelReply {
- int64 project_id = 1;
- }
- message DeviceTypeListRequest {
- int64 provider_id = 1;
- repeated int32 status_filters = 2;
- bool include_vedio = 3;
- // 0. 已对接的设备类型 1 设备类型申报 2 设备类型对接 3.可申请的设备类型 4 可对接的设备类型
- uint32 list_type = 4;
- int32 device_code = 5;
- }
- message DeviceTypeItem {
- int32 type_code = 1;
- string type_name = 2;
- string created_time = 3;
- int32 status = 4;
- string feedback = 5;
- string appendix = 6;
- string agent = 7;
- string agent_phone = 8;
- string approve_time = 9;
- string comment = 10;
- bool need_appendix = 11;
- string reviewer = 12;
- }
- message DeviceTypeListReply {
- repeated DeviceTypeItem list = 1;
- }
- message DeviceListRequest {
- int64 provider_id = 1;
- // 状态过滤 审核状态 0 待审核 1 项目通过 2 项目未通过
- repeated int32 status_filters = 2;
- int32 page = 3;
- int64 project_id = 4;
- string filter = 5;
- int32 type_code = 6;
- bool is_all = 7;
- bool can_del = 8;
- bool all_type = 9;
- }
- message DeviceItem {
- int64 id = 1;
- string social_code = 2;
- // 设备类型编码
- int32 type_code = 3;
- string type_name = 4;
- // 申请时间
- string created_time = 5;
- // 审批时间
- string approve_time = 6;
- // 0 待审核 1 项目通过 2 项目不通过
- int32 status = 7;
- string project_name = 8;
- // 安检备案号
- string safety_record_no = 9;
- // 0 离线 1 在线
- int32 state = 10;
- string sn = 11;
- string key = 12;
- string provider_name = 13;
- string name = 14;
- string model = 15;
- string manufacturer = 16;
- string url = 17;
- string batch = 18;
- string phone = 19;
- string person = 20;
- string unit = 21;
- double lon = 22;
- double lat = 23;
- string kind = 24;
- string sub_kind = 25;
- string remark = 26;
- }
- message DeviceListReply {
- repeated DeviceItem list = 1;
- int32 page = 2;
- int64 total = 3;
- int32 page_size = 4;
- }
- message VedioListRequest {
- int64 provider_id = 1;
- // 状态过滤 审核状态 0 待审核 1 项目通过 2 项目未通过
- repeated int32 status_filters = 2;
- int32 page = 3;
- int64 project_id = 4;
- string filter = 5;
- bool is_all = 7;
- }
- message VedioItem {
- int64 id = 1;
- string social_code = 2;
- // 设备类型编码
- int32 type_code = 3;
- string type_name = 4;
- // 申请时间
- string apply_time = 5;
- // 审批时间
- string approve_time = 6;
- // 0 待审核 1 项目通过 2 项目不通过
- int32 status = 7;
- string project_name = 8;
- // 安检备案号
- string safety_record_no = 9;
- // 0 离线 1 在线
- int32 state = 10;
- string sn = 11;
- string key = 12;
- string provider_name = 13;
- string name = 14;
- string ip = 15;
- int64 port = 16;
- string media_transport = 17;
- int32 channel_count = 18;
- }
- message VedioListReply {
- repeated VedioItem list = 1;
- int32 page = 2;
- int64 total = 3;
- int32 page_size = 4;
- }
- message ProjectItem {
- int64 id = 1;
- string name = 2;
- string short_name = 3;
- string project_no = 4;
- string safety_record_no = 5;
- }
- message ProjectListRequest {
- }
- message ProjectListReply {
- repeated ProjectItem list = 1;
- }
- message DeviceDelJobItem {
- int64 id = 1;
- string social_code = 2;
- // 设备类型编码
- int32 type_code = 3;
- string type_name = 4;
- // 申请时间
- string apply_time = 5;
- // 审批时间
- string approve_time = 6;
- // 0 待审核 1 通过 2 项目不通过
- int32 status = 7;
- // 项目名称
- string project_name = 8;
- // 安检备案号
- string safety_record_no = 9;
- string provider_name = 10;
- string sn = 11;
- string reason = 12;
- string feedback = 13;
- string device_name = 14;
- string reviewer = 15;
- }
- message DeviceDelJobListRequest {
- int64 provider_id = 1;
- // 状态过滤 审核状态 0 待审核 1 通过 2 未通过
- repeated int32 status_filters = 2;
- int32 page = 3;
- int64 project_id = 4;
- string filter = 5;
- }
- message DeviceDelJobListReply {
- int32 page_size = 1;
- int64 total = 2;
- int32 page = 3;
- repeated DeviceDelJobItem list = 5;
- }
|