syntax = "proto3"; // package声明符,用来防止不同的消息类型有命名冲突 package pb_v1; // 用于生成指定语言go的包名称 option go_package = "property-household-gateway/pb/v1"; message SystemPermissionAddRequest { // 父code,若没有则填空 string pcode = 1; // 方法 int32 method = 2; // 权限名字 string name = 3; // 该路由是否需要前端控制 bool front = 4; // 路由 string router = 5; } message SystemPermissionAddReply { string code = 1; } message SystemPermissionUpdateRequest { // 方法 int32 method = 2; // 权限名字 string name = 3; // 该路由是否需要前端控制 bool front = 4; // 路由 string router = 5; string code = 6; } message SystemPermissionUpdateReply { } message SystemPermissionDelRequest { string code = 1; } message SystemPermissionDelReply { } message SystemPermissionListRequest { } message SystemPermissionItem { // 父code,若没有则填空 string pcode = 1; // 方法 int32 method = 2; // 权限名字 string name = 3; // 该路由是否需要前端控制 bool front = 4; // 路由 string router = 5; string code = 6; repeated SystemPermissionItem childs = 7; } message SystemPermissionListReply { repeated SystemPermissionItem list = 1; } message SystemPermissionNotTreeItem { // 父code,若没有则填空 string pcode = 1; // 方法 int32 method = 2; // 权限名字 string name = 3; // 该路由是否需要前端控制 bool front = 4; // 路由 string router = 5; string code = 6; } // 平铺权限列表 message SystemPermissionsNotTreeRequest { } message SystemPermissionsNotTreeReply { repeated SystemPermissionNotTreeItem list = 1; } message ProvinceCityAreaRequest { } message ProvinceData { string code = 1; string name = 2; } message CityData { string code = 1; string name = 2; string province_code = 3; } message AreaData { string code = 1; string name = 2; string province_code = 3; string city_code = 4; } message ProvinceCityAreaReply { repeated ProvinceData province_list = 1; repeated CityData city_list = 2; repeated AreaData area_list = 3; } message CityRequest { string city_name = 1; } message CityReply { string code = 1; string name = 2; string province_code = 3; string province_name = 4; } message StreetCommitteeRequest { string area_code = 1; } message StreetData { string code = 1; string name = 2; } message CommitteeData { string code = 1; string name = 2; string street_code = 3; } message StreetCommitteeReply { repeated StreetData street_list = 1; repeated CommitteeData committee_list = 2; } message SystemPermissionRouterRequest { string router = 1; string method = 2; } message SystemPermissionRouterReply { string code = 1; } message OssObjDelNotExistRequest { string obj_url = 1; } message OssObjDelNotExistReply { } message MaterialInfoRequest { int32 mtype = 1; } message MaterialInfoReply { string pic = 1; } message MaterialItem { int64 id = 1; int32 mtype = 2; string pic = 3; int64 created_at = 4; int32 enable = 5; } message MaterialListRequest { int64 page = 1; int64 page_size = 2; repeated int32 mtypes = 3; } message MaterialListReply { int64 page = 1; int64 total = 2; repeated MaterialItem list = 3; }