123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321 |
- syntax = "proto3";
- // package声明符,用来防止不同的消息类型有命名冲突
- package pb_v1;
- // 用于生成指定语言go的包名称
- option go_package = "property-system/pb/v1";
- message SystemPermissionAddRequest {
- // 父code,若没有则填空
- string pcode = 1;
- // 组件路径
- string path = 2;
- // 权限名字
- string name = 3;
- // 小程序组件路径
- string applete_path = 4;
- // 路由
- string router = 5;
- // 1 已发布 2 未发布
- int32 enable = 6;
- }
- message SystemPermissionAddReply {
- string code = 1;
- }
- message SystemPermissionUpdateRequest {
- // 组件路径
- string path = 1;
- // 权限名字
- string name = 2;
- // 小程序组件路径
- string applete_path = 3;
- // 路由
- string router = 4;
- string code = 5;
- }
- message SystemPermissionUpdateReply {
- SystemPermissionUpdateRequest origin = 1;
- }
- message SystemPermissionDelRequest {
- string code = 1;
- }
- message SystemPermissionDelReply {
- repeated SystemPermissionUpdateRequest origin = 1;
- }
- message SystemPermissionListRequest {
- }
- message SystemPermissionItem {
- // 父code,若没有则填空
- string pcode = 1;
- // 组件路径
- string path =2;
- // 权限名字
- string name = 3;
- // 小程序组件路径
- string applete_path = 4;
- // 路由
- string router = 5;
- string code = 6;
- // 1 已发布 2 未发布
- int32 enable = 7;
- int64 created_at = 8;
- int64 enable_at = 9;
- int64 level = 10;
- repeated SystemPermissionItem childs = 11;
- }
- message SystemPermissionListReply {
- repeated SystemPermissionItem list = 1;
- }
- message SystemPermissionNotTreeItem {
- // 父code,若没有则填空
- string pcode = 1;
- // 组件路径
- string path = 2;
- // 权限名字
- string name = 3;
- // 小程序组件路径
- string applete_path = 4;
- // 路由
- string router = 5;
- string code = 6;
- // 1 已发布 2 未发布
- int32 enable = 7;
- int64 created_at = 8;
- int64 enable_at = 9;
- int64 level = 10;
- }
- // 平铺权限列表
- 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 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 OssObjAddRequest {
- repeated string in_list = 1;
- repeated string out_list = 2;
- }
- message OssObjAddReply {
- }
- message OssObjDelNotExistRequest {
- string obj_url = 1;
- }
- message OssObjDelNotExistReply {
- }
- message ApplicationListRequest {
- int64 page = 1;
- int64 page_size = 2;
- int32 enable = 3;
- int64 package_id = 4;
- repeated int64 exclude_ids = 5;
- }
- message ApplicationItem {
- string icon = 1;
- string desc = 2;
- string name = 3;
- string content = 4;
- int64 price = 5;
- bool enable = 6;
- int64 id = 7;
- }
- message ApplicationListReply {
- int64 total = 1;
- int64 page = 2;
- repeated ApplicationItem list = 3;
- }
- message ApplicationPermissionItem {
- // 父code,若没有则填空
- string pcode = 1;
- // 小程序组件路径
- string applete_path = 2;
- // 权限名字
- string name = 3;
- // 是否拥有该权限
- bool selected = 4;
- // 路由
- string router = 5;
- string code = 6;
- // 组件路径
- string path = 7;
- repeated ApplicationPermissionItem childs = 8;
- }
- message ApplicationPermissionsRequest {
- int64 id = 1;
- }
- message ApplicationPermissionsReply {
- repeated ApplicationPermissionItem list = 1;
- }
- message PackageItem {
- string name = 1;
- string desc = 2;
- int64 price = 3;
- int64 house_count = 4;
- int64 id = 5;
- bool enable = 6;
- }
- message PackageListRequest {
- int64 page = 1;
- int64 page_size = 2;
- int32 enable = 3;
- repeated int64 exclude_ids = 4;
- }
- message PackageListReply {
- int64 page = 1;
- int64 total = 2;
- repeated PackageItem list = 3;
- }
- message ApplicationInfoRequest {
- int64 id = 1;
- }
- message ApplicationInfo {
- string icon = 1;
- string desc = 2;
- string name = 3;
- string content = 4;
- int64 price = 5;
- bool enable = 6;
- int64 id = 7;
- repeated SystemPermissionNotTreeItem permissions = 8;
- }
- message ApplicationInfoReply {
- ApplicationInfo info = 1;
- }
- message PackageInfoRequest {
- int64 id = 1;
- }
- message PackageInfoReply {
- string name = 1;
- string desc = 2;
- int64 price = 3;
- int64 house_count = 4;
- int64 id = 5;
- bool enable = 6;
- repeated ApplicationInfo applications = 7;
- }
- message MsgPackageInfoRequest {
- int64 id = 1;
- }
- message MsgPackageInfoReply {
- // 套餐名称
- string name = 1;
- // 套餐描述
- string comment = 2;
- // 套餐价格
- int64 price = 3;
- // 短信条数
- int64 msg_count = 4;
- int64 id = 5;
- }
|