property_review.go 738 B

1234567891011121314151617181920212223242526
  1. package gorpc
  2. import (
  3. "go-common/app/service/main/member/model"
  4. "go-common/library/net/rpc/context"
  5. )
  6. // AddUserMonitor is add user into monitor
  7. func (r *RPC) AddUserMonitor(ctx context.Context, arg *model.ArgAddUserMonitor, res *struct{}) error {
  8. return r.s.AddUserMonitor(ctx, arg)
  9. }
  10. // IsInMonitor check user is in monitor
  11. func (r *RPC) IsInMonitor(ctx context.Context, arg *model.ArgMid, res *bool) error {
  12. isInMonitor, err := r.s.IsInMonitor(ctx, arg)
  13. if err != nil {
  14. return err
  15. }
  16. *res = isInMonitor
  17. return nil
  18. }
  19. // AddPropertyReview add user property update review.
  20. func (r *RPC) AddPropertyReview(ctx context.Context, arg *model.ArgAddPropertyReview, res *struct{}) error {
  21. return r.s.AddPropertyReview(ctx, arg)
  22. }