Initial commit

This commit is contained in:
Donny
2019-04-22 20:46:32 +08:00
commit 49ab8aadd1
25441 changed files with 4055000 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
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
}