company_service.proto 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. syntax = "proto3";
  2. import "v1/company.proto";
  3. // package声明符,用来防止不同的消息类型有命名冲突
  4. package pb.service;
  5. // 用于生成指定语言go的包名称
  6. option go_package = "property-company/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. // 小区审批未通过时数量减1
  27. rpc CompanyGardenDecrease(pb_v1.CompanyGardenDecreaseRequest) returns (pb_v1.CompanyGardenDecreaseReply){}
  28. // 设置商户号
  29. rpc CompanyMchIdSet(pb_v1.CompanyMchIdSetRequest) returns (pb_v1.CompanyMchIdSetReply){}
  30. // 设置支付方式 仅线下/支付到公司账户/支付到软件系统提供商账户
  31. rpc CompanyPayModel(pb_v1.CompanyPayModelRequest) returns (pb_v1.CompanyPayModelReply){}
  32. // 微信商户申请
  33. rpc CompanyWxAccountApply(pb_v1.CompanyWxAccountApplyRequest) returns (pb_v1.CompanyWxAccountApplyReply){}
  34. // 微信商户申请列表
  35. rpc CompanyWxAccountApplyList(pb_v1.CompanyWxAccountApplyListRequest) returns (pb_v1.CompanyWxAccountApplyListReply){}
  36. // 微信商户申请资料信息
  37. rpc CompanyWxAccountApplyInfo(pb_v1.CompanyWxAccountApplyInfoRequest) returns (pb_v1.CompanyWxAccountApplyInfoReply){}
  38. // 统计
  39. rpc CompanyStatistic(pb_v1.CompanyStatisticRequest) returns (pb_v1.CompanyStatisticReply){}
  40. rpc CompanyObjStatisticSet(pb_v1.CompanyObjStatisticSetRequest) returns (pb_v1.CompanyObjStatisticSetReply){}
  41. rpc CompanyDealStatisticSet(pb_v1.CompanyDealStatisticSetRequest) returns (pb_v1.CompanyDealStatisticSetReply){}
  42. // 公司用户
  43. rpc CompanyUserAdd(pb_v1.CompanyUserAddRequest) returns (pb_v1.CompanyUserAddReply){}
  44. rpc CompanyUserUpdate(pb_v1.CompanyUserUpdateRequest) returns (pb_v1.CompanyUserUpdateReply){}
  45. rpc CompanyUserDel(pb_v1.CompanyUserDelRequest) returns (pb_v1.CompanyUserDelReply){}
  46. rpc CompanyUserList(pb_v1.CompanyUserListRequest) returns (pb_v1.CompanyUserListReply){}
  47. }