moral.go 840 B

12345678910111213141516171819202122232425262728293031
  1. package gorpc
  2. import (
  3. "context"
  4. "go-common/app/service/main/member/model"
  5. )
  6. // Moral get user moral.
  7. func (s *Service) Moral(c context.Context, arg *model.ArgMemberMid) (res *model.Moral, err error) {
  8. err = s.client.Call(c, _Moral, arg, &res)
  9. return
  10. }
  11. // MoralLog get user moral log.
  12. func (s *Service) MoralLog(c context.Context, arg *model.ArgMemberMid) (res []*model.UserLog, err error) {
  13. err = s.client.Call(c, _MoralLog, arg, &res)
  14. return
  15. }
  16. // AddMoral add moral .
  17. func (s *Service) AddMoral(c context.Context, arg *model.ArgUpdateMoral) (err error) {
  18. err = s.client.Call(c, _addMoral, arg, &_noRes)
  19. return
  20. }
  21. // BatchAddMoral get user moral log.
  22. func (s *Service) BatchAddMoral(c context.Context, arg *model.ArgUpdateMorals) (res map[int64]int64, err error) {
  23. err = s.client.Call(c, _batchAddMoral, arg, &res)
  24. return
  25. }