You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
840 B
31 lines
840 B
package gorpc |
|
|
|
import ( |
|
"context" |
|
|
|
"go-common/app/service/main/member/model" |
|
) |
|
|
|
// Moral get user moral. |
|
func (s *Service) Moral(c context.Context, arg *model.ArgMemberMid) (res *model.Moral, err error) { |
|
err = s.client.Call(c, _Moral, arg, &res) |
|
return |
|
} |
|
|
|
// MoralLog get user moral log. |
|
func (s *Service) MoralLog(c context.Context, arg *model.ArgMemberMid) (res []*model.UserLog, err error) { |
|
err = s.client.Call(c, _MoralLog, arg, &res) |
|
return |
|
} |
|
|
|
// AddMoral add moral . |
|
func (s *Service) AddMoral(c context.Context, arg *model.ArgUpdateMoral) (err error) { |
|
err = s.client.Call(c, _addMoral, arg, &_noRes) |
|
return |
|
} |
|
|
|
// BatchAddMoral get user moral log. |
|
func (s *Service) BatchAddMoral(c context.Context, arg *model.ArgUpdateMorals) (res map[int64]int64, err error) { |
|
err = s.client.Call(c, _batchAddMoral, arg, &res) |
|
return |
|
}
|
|
|