123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345 |
- syntax = "proto3";
- // package声明符,用来防止不同的消息类型有命名冲突
- package v1;
- // 用于生成指定语言go的包名称
- option go_package = "smart-enterprise-management-gateway/pb/v1";
- message ProjectAddRequest {
- // 项目所属公司
- int64 company_id = 1;
- // 项目名称
- string name = 2;
- // 建设地址
- string location = 3;
- // 安监备案号
- string safety_record_no = 4;
- // 项目类别 1 房屋建筑工程 2 市政工程 3 其他
- uint32 category = 5;
- // 建设性质 1 新建 2 改建 3 扩建
- uint32 construct_type = 6;
- // 资金来源
- int32 invest_type = 7;
- // 项目平面图
- repeated string project_plan = 8;
- // 项目所在地行政区域代码
- string area_code = 9;
- // 项目规模
- string scale = 10;
- // 总投资 万元
- double price = 11;
- // 项目简介
- string desc = 12;
- // 总面积
- double covered_area = 13;
- // 1 筹备 2 立项 3 在建 4 完工 5 停工
- uint32 project_status = 14;
- // 经度
- double lon = 15;
- // 纬度
- double lat = 16;
- // 项目效果图
- repeated string project_effect_pic = 17;
- // 计划开工日期
- int64 start_day = 18;
- // 计划完工日期
- int64 end_day = 19;
- }
- message ProjectAddReply {
- int64 id = 1;
- }
- message ProjectItem {
- int64 id = 1;
- // 项目名称
- string name = 2;
- // 建设地址
- string location = 3;
- // 安监备案号
- string safety_record_no = 4;
- // 项目类别 1 房屋建筑工程 2 市政工程 3 其他
- string category = 5;
- // 建设性质 1 新建 2 改建 3 扩建
- string construct_type = 6;
- // 资金来源
- string invest_type = 7;
- // 项目平面图
- string project_plan = 8;
- // 项目所在地行政区域代码
- string area_code = 9;
- // 项目规模
- string scale = 10;
- // 总投资 万元
- double price = 11;
- // 项目简介
- string desc = 12;
- // 总面积
- double covered_area = 13;
- // 1 筹备 2 立项 3 在建 4 完工 5 停工
- string project_status = 14;
- // 经度
- double lon = 15;
- // 纬度
- double lat = 16;
- // 项目效果图
- string project_effect_pic = 17;
- // 计划开工日期
- string start_day = 18;
- // 计划完工日期
- string end_day = 19;
- string create_time = 20;
- string manager = 21;
- string manager_phone =22;
- string ProvincialVerifyStatus = 23;
- string ProvincialVerifyResult = 24;
- string ProvincialVerifyInfo = 25;
- }
- message ProjectInfo {
- int64 id = 1;
- // 项目名称
- string name = 2;
- // 建设地址
- string location = 3;
- // 安监备案号
- string safety_record_no = 4;
- // 项目类别 1 房屋建筑工程 2 市政工程 3 其他
- uint32 category = 5;
- // 建设性质 1 新建 2 改建 3 扩建
- uint32 construct_type = 6;
- // 资金来源
- int32 invest_type = 7;
- // 项目平面图
- string project_plan = 8;
- // 项目所在地行政区域代码
- string area_code = 9;
- // 项目规模
- string scale = 10;
- // 总投资 万元
- double price = 11;
- // 项目简介
- string desc = 12;
- // 总面积
- double covered_area = 13;
- // 1 筹备 2 立项 3 在建 4 完工 5 停工
- uint32 project_status = 14;
- // 经度
- double lon = 15;
- // 纬度
- double lat = 16;
- // 项目效果图
- string project_effect_pic = 17;
- // 计划开工日期
- string start_day = 18;
- // 计划完工日期
- string end_day = 19;
- string create_time = 20;
- string manager = 21;
- string manager_phone = 22;
- string ProvincialVerifyStatus = 23;
- string ProvincialVerifyResult = 24;
- string ProvincialVerifyInfo = 25;
- }
- message ProjectListRequest {
- int32 page = 1;
- string filter = 2;
- repeated int32 filter_status = 3;
- int64 cid = 4;
- int32 page_size = 5;
- }
- message ProjectListReply {
- int64 total = 1;
- int32 page = 2;
- int32 page_size = 3;
- repeated ProjectItem list = 4;
- }
- message ProjectUserListRequest {
- string filter = 1;
- int64 cid = 2;
- int32 page = 3;
- }
- message ProjectUserItem {
- int64 id = 1;
- string username = 2;
- string passwd = 3;
- string project_name = 4;
- string safety_record_no = 5;
- bool enable = 6;
- int32 user_type = 7;
- }
- message ProjectUserListReply {
- int64 total = 1;
- int32 page = 2;
- int32 page_size = 3;
- repeated ProjectUserItem list = 4;
- }
- message EnableProjectUserRequest {
- int64 id = 1;
- bool enable = 2;
- }
- message EnableProjectUserReply {
- int64 project_id = 1;
- }
- message ProjectUserPasswordResetRequest {
- int64 id = 2;
- string password = 1;
- }
- message ProjectUserPasswordResetReply {
- }
- message ProjectDistrictRequest {
- }
- message ProjectDistrictZone {
- int64 id = 1;
- string addr = 2;
- }
- message ProjectDistrictCity {
- int64 id = 1;
- string addr = 2;
- repeated ProjectDistrictZone list = 4;
- }
- message ProjectDistrictProvince {
- int64 id = 1;
- string addr = 2;
- repeated ProjectDistrictCity list = 3;
- }
- message ProjectDistrictReply {
- repeated ProjectDistrictProvince list = 1;
- }
- message ProjectUpdateRequest {
- int64 id = 1;
- // 项目名称
- string name = 2;
- // 建设地址
- string location = 3;
- // 安监备案号
- string safety_record_no = 4;
- // 项目类别 1 房屋建筑工程 2 市政工程 3 其他
- uint32 category = 5;
- // 建设性质 1 新建 2 改建 3 扩建
- uint32 construct_type = 6;
- // 资金来源
- int32 invest_type = 7;
- // 项目平面图
- repeated string project_plan = 8;
- // 项目所在地行政区域代码
- string area_code = 9;
- // 项目规模
- string scale = 10;
- // 总投资 万元
- double price = 11;
- // 项目简介
- string desc = 12;
- // 总面积
- double covered_area = 13;
- // 1 筹备 2 立项 3 在建 4 完工 5 停工
- uint32 project_status = 14;
- // 经度
- double lon = 15;
- // 纬度
- double lat = 16;
- // 项目效果图
- repeated string project_effect_pic = 17;
- // 计划开工日期
- int64 start_day = 18;
- // 计划完工日期
- int64 end_day = 19;
- }
- message ProjectUpdateReply {
- }
- message ProjectInfoRequest {
- int64 id = 1;
- }
- // 参建单位列表
- message ProjectCorpListItem {
- int64 id = 1;
- // 单位名称
- string name = 2;
- // 单位所在行政区域代码
- string area_code = 3;
- // 单位社会信用码
- string social_code = 4;
- // 注册日期
- string register_date = 5;
- // 参建类型
- string corp_type = 6;
- }
- message ProjectPMListItem {
- int64 id = 1;
- string corp_name = 2;
- // 单位社会信用码
- string social_code = 3;
- // 参建类型
- string corp_type = 4;
- // 人员类型
- string p_type = 5;
- // 姓名
- string name = 6;
- // 证件类型
- string cert_type = 7;
- // 证件号
- string cert_num = 8;
- // 电话号
- string phone = 9;
- }
- message ProjectInfoReply {
- ProjectInfo info = 1;
- repeated ProjectCorpListItem corp_list = 2;
- repeated ProjectPMListItem pm_list = 3;
- }
- message ProjectDelRequest {
- int64 id = 1;
- }
- message ProjectDelReply {
- string origin = 1;
- }
- message ProjectFinishRequest {
- int64 id = 1;
- }
- message ProjectFinishReply {
- }
- message AreaCodeListRequest {
- }
- message AreaCodeItem {
- int64 id = 1;
- string area_code = 2;
- string area_addr = 3;
- }
- message AreaCodeListReply {
- repeated AreaCodeItem list = 1;
- }
|