company_service.proto 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. syntax = "proto3";
  2. import "v1/company.proto";
  3. // package声明符,用来防止不同的消息类型有命名冲突
  4. package pb.service;
  5. // 用于生成指定语言go的包名称
  6. option go_package = "property-company-gateway/pb";
  7. // The system service definition.
  8. service Company {
  9. //
  10. rpc Login(pb_v1.LoginRequest) returns (pb_v1.LoginReply){}
  11. rpc Register(pb_v1.RegisterRequest) returns (pb_v1.RegisterReply){}
  12. rpc LoginByPhone(pb_v1.LoginByPhoneRequest) returns (pb_v1.LoginByPhoneReply){}
  13. rpc CheckPhone(pb_v1.CheckPhoneRequest) returns (pb_v1.CheckPhoneReply){}
  14. rpc ResetPassword(pb_v1.ResetPasswordRequest) returns (pb_v1.ResetPasswordReply){}
  15. rpc ChangePassword(pb_v1.ChangePasswordRequest) returns (pb_v1.ChangePasswordReply){}
  16. rpc CompanyApprove(pb_v1.CompanyApproveRequest) returns (pb_v1.CompanyApproveReply){}
  17. rpc CompanyList(pb_v1.CompanyListRequest) returns (pb_v1.CompanyListReply){}
  18. rpc CompanyInfo(pb_v1.CompanyInfoRequest) returns (pb_v1.CompanyInfoReply){}
  19. rpc CompanyUpdate(pb_v1.CompanyUpdateRequest) returns (pb_v1.CompanyUpdateReply){}
  20. // 新增小区
  21. rpc CompanyAddGarden(pb_v1.CompanyAddGardenRequest) returns (pb_v1.CompanyAddGardenReply){}
  22. // 检查是否可以新增小区
  23. rpc CompanyCanAddGarden(pb_v1.CompanyCanAddGardenRequest) returns (pb_v1.CompanyCanAddGardenReply){}
  24. // 修改配额
  25. rpc CompanyChangeFreeGarden(pb_v1.CompanyChangeFreeGardenRequest) returns (pb_v1.CompanyChangeFreeGardenReply){}
  26. // 设置支付方式 仅线下/支付到公司账户/支付到软件系统提供商账户
  27. rpc CompanyPayModel(pb_v1.CompanyPayModelRequest) returns (pb_v1.CompanyPayModelReply){}
  28. // 微信商户申请
  29. rpc CompanyWxAccountApply(pb_v1.CompanyWxAccountApplyRequest) returns (pb_v1.CompanyWxAccountApplyReply){}
  30. // 微信商户申请列表
  31. rpc CompanyWxAccountApplyList(pb_v1.CompanyWxAccountApplyListRequest) returns (pb_v1.CompanyWxAccountApplyListReply){}
  32. // 微信商户申请资料信息
  33. rpc CompanyWxAccountApplyInfo(pb_v1.CompanyWxAccountApplyInfoRequest) returns (pb_v1.CompanyWxAccountApplyInfoReply){}
  34. // 统计
  35. rpc CompanyStatistic(pb_v1.CompanyStatisticRequest) returns (pb_v1.CompanyStatisticReply){}
  36. // 公司用户
  37. rpc CompanyUserAdd(pb_v1.CompanyUserAddRequest) returns (pb_v1.CompanyUserAddReply){}
  38. rpc CompanyUserUpdate(pb_v1.CompanyUserUpdateRequest) returns (pb_v1.CompanyUserUpdateReply){}
  39. rpc CompanyUserDel(pb_v1.CompanyUserDelRequest) returns (pb_v1.CompanyUserDelReply){}
  40. rpc CompanyUserList(pb_v1.CompanyUserListRequest) returns (pb_v1.CompanyUserListReply){}
  41. }