property_review.go 822 B

12345678910111213141516171819202122232425262728293031
  1. package gorpc
  2. import (
  3. "context"
  4. "go-common/app/service/main/member/model"
  5. )
  6. const (
  7. _AddUserMonitor = "RPC.AddUserMonitor"
  8. _IsInMonitor = "RPC.IsInMonitor"
  9. _AddPropertyReview = "RPC.AddPropertyReview"
  10. )
  11. // AddUserMonitor is
  12. func (s *Service) AddUserMonitor(c context.Context, arg *model.ArgAddUserMonitor) error {
  13. return s.client.Call(c, _AddUserMonitor, arg, &_noRes)
  14. }
  15. // IsInMonitor is
  16. func (s *Service) IsInMonitor(c context.Context, arg *model.ArgMid) (bool, error) {
  17. isInMonitor := false
  18. if err := s.client.Call(c, _IsInMonitor, arg, &isInMonitor); err != nil {
  19. return false, err
  20. }
  21. return isInMonitor, nil
  22. }
  23. // AddPropertyReview is
  24. func (s *Service) AddPropertyReview(c context.Context, arg *model.ArgAddPropertyReview) error {
  25. return s.client.Call(c, _AddPropertyReview, arg, &_noRes)
  26. }