Documentation ¶
Index ¶
- func IPv4toN(ip net.IP) (sum uint32)
- type Service
- func (s *Service) AddMedal(c context.Context, np *model.Medal) (err error)
- func (s *Service) AddPendantGroup(c context.Context, arg *model.ArgPendantGroup) (err error)
- func (s *Service) AddPendantInfo(c context.Context, arg *model.ArgPendantInfo) (err error)
- func (s *Service) BatchAdd(c context.Context, nid int64, f multipart.File, h *multipart.FileHeader) (msg string, err error)
- func (s *Service) Close()
- func (s *Service) EquipPendant(c context.Context, uid, pid int64) (err error)
- func (s *Service) Generate(c context.Context, mid, num, expireDay int64) (res []*model.RichInvite, err error)
- func (s *Service) List(c context.Context, mid, start, end int64) (res []*model.RichInvite, err error)
- func (s *Service) Medal(c context.Context) (res []*model.MedalInfo, err error)
- func (s *Service) MedalGroup(c context.Context) (res map[int64]*model.MedalGroup, err error)
- func (s *Service) MedalGroupAdd(c context.Context, ng *model.MedalGroup) (err error)
- func (s *Service) MedalGroupByGid(c context.Context, id int64) (ng *model.MedalGroup, err error)
- func (s *Service) MedalGroupInfo(c context.Context) (res []*model.MedalGroup, err error)
- func (s *Service) MedalGroupParent(c context.Context) (res []*model.MedalGroup, err error)
- func (s *Service) MedalGroupUp(c context.Context, id int64, ng *model.MedalGroup) (err error)
- func (s *Service) MedalOperlog(c context.Context, mid int64, pn, ps int) (opers []*model.MedalOperLog, pager *model.Pager, err error)
- func (s *Service) MedalOwner(c context.Context, mid int64) (no []*model.MedalMemberMID, err error)
- func (s *Service) MedalOwnerAdd(c context.Context, mid, nid int64, title, msg string, oid int64) (err error)
- func (s *Service) MedalOwnerAddList(c context.Context, mid int64) (res []*model.MedalMemberAddList, err error)
- func (s *Service) MedalOwnerDel(c context.Context, mid, nid int64, isDel int8, title, msg string) (err error)
- func (s *Service) MedalOwnerUpActivated(c context.Context, mid, nid int64) (err error)
- func (s *Service) MedalView(c context.Context, id int64) (res *model.MedalInfo, err error)
- func (s *Service) MutliSendPendant(c context.Context, uids []int64, pid int64, day int64, msg *model.SysMsg, ...) (err error)
- func (s *Service) PendantGroupAll(c context.Context) (pgs []*model.PendantGroup, err error)
- func (s *Service) PendantGroupID(c context.Context, gid int64) (pg *model.PendantGroup, err error)
- func (s *Service) PendantGroupList(c context.Context, arg *model.ArgPendantGroupList) (pgs []*model.PendantGroup, pager *model.Pager, err error)
- func (s *Service) PendantInfoAllNoPage(c context.Context) (pis []*model.PendantInfo, err error)
- func (s *Service) PendantInfoID(c context.Context, pid, gid int64) (pi *model.PendantInfo, err error)
- func (s *Service) PendantInfoList(c context.Context, arg *model.ArgPendantGroupList) (pis []*model.PendantInfo, pager *model.Pager, err error)
- func (s *Service) PendantOperlog(c context.Context, pn, ps int) (opers []*model.PendantOperLog, pager *model.Pager, err error)
- func (s *Service) PendantOrders(c context.Context, arg *model.ArgPendantOrder) (pos []*model.PendantOrder, pager *model.Pager, err error)
- func (s *Service) PendantPKG(c context.Context, uid int64) (pkgs []*model.PendantPKG, equip *model.PendantPKG, err error)
- func (s *Service) Ping(c context.Context) (err error)
- func (s *Service) ReadCsv(f multipart.File, h *multipart.FileHeader) (rs [][]string, err error)
- func (s *Service) UpMedal(c context.Context, id int64, np *model.Medal) (err error)
- func (s *Service) UpPendantGroup(c context.Context, arg *model.ArgPendantGroup) (err error)
- func (s *Service) UpPendantGroupStatus(c context.Context, gid int64, status int8) (err error)
- func (s *Service) UpPendantInfo(c context.Context, arg *model.ArgPendantInfo) (err error)
- func (s *Service) UpPendantInfoStatus(c context.Context, pid int64, status int8) (err error)
- func (s *Service) UpPendantPKG(c context.Context, uid, pid int64, day int64, msg *model.SysMsg, oid int64) (err error)
- func (s *Service) Upload(c context.Context, fileName, fileType string, expire int64, body io.Reader) (location string, err error)
- func (s *Service) UserPKGDetails(c context.Context, uid, pid int64) (pkg *model.PendantPKG, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Service ¶
Service struct of service.
func (*Service) AddPendantGroup ¶
AddPendantGroup update pendant group.
func (*Service) AddPendantInfo ¶
AddPendantInfo add pendantInfo .
func (*Service) BatchAdd ¶
func (s *Service) BatchAdd(c context.Context, nid int64, f multipart.File, h *multipart.FileHeader) (msg string, err error)
BatchAdd medal bacth add.
func (*Service) EquipPendant ¶
EquipPendant equip pendant.
func (*Service) Generate ¶
func (s *Service) Generate(c context.Context, mid, num, expireDay int64) (res []*model.RichInvite, err error)
Generate generate invite codes in batch.
func (*Service) List ¶
func (s *Service) List(c context.Context, mid, start, end int64) (res []*model.RichInvite, err error)
List list one's invite codes range time start and end.
func (*Service) MedalGroup ¶
MedalGroup medal group .
func (*Service) MedalGroupAdd ¶
MedalGroupAdd add medal group.
func (*Service) MedalGroupByGid ¶
MedalGroupByGid nameplate by gid .
func (*Service) MedalGroupInfo ¶
MedalGroupInfo medal group all info include parent group name .
func (*Service) MedalGroupParent ¶
MedalGroupParent medal group all info include parent group name .
func (*Service) MedalGroupUp ¶
MedalGroupUp update medal group.
func (*Service) MedalOperlog ¶
func (s *Service) MedalOperlog(c context.Context, mid int64, pn, ps int) (opers []*model.MedalOperLog, pager *model.Pager, err error)
MedalOperlog medal operactlog .
func (*Service) MedalOwner ¶
MedalOwner medal onwer .
func (*Service) MedalOwnerAdd ¶
func (s *Service) MedalOwnerAdd(c context.Context, mid, nid int64, title, msg string, oid int64) (err error)
MedalOwnerAdd medal owner add .
func (*Service) MedalOwnerAddList ¶
func (s *Service) MedalOwnerAddList(c context.Context, mid int64) (res []*model.MedalMemberAddList, err error)
MedalOwnerAddList .
func (*Service) MedalOwnerDel ¶
func (s *Service) MedalOwnerDel(c context.Context, mid, nid int64, isDel int8, title, msg string) (err error)
MedalOwnerDel update medal owner is_del .
func (*Service) MedalOwnerUpActivated ¶
MedalOwnerUpActivated update medal owner is_activated.
func (*Service) MutliSendPendant ¶
func (s *Service) MutliSendPendant(c context.Context, uids []int64, pid int64, day int64, msg *model.SysMsg, oid int64) (err error)
MutliSendPendant mutli send pendant.
func (*Service) PendantGroupAll ¶
PendantGroupAll all groups.
func (*Service) PendantGroupID ¶
PendantGroupID pendant group by ID.
func (*Service) PendantGroupList ¶
func (s *Service) PendantGroupList(c context.Context, arg *model.ArgPendantGroupList) (pgs []*model.PendantGroup, pager *model.Pager, err error)
PendantGroupList group page.
func (*Service) PendantInfoAllNoPage ¶
PendantInfoAllNoPage all info on no page.
func (*Service) PendantInfoID ¶
func (s *Service) PendantInfoID(c context.Context, pid, gid int64) (pi *model.PendantInfo, err error)
PendantInfoID pendant info by pid and gid.
func (*Service) PendantInfoList ¶
func (s *Service) PendantInfoList(c context.Context, arg *model.ArgPendantGroupList) (pis []*model.PendantInfo, pager *model.Pager, err error)
PendantInfoList pendant list by group rank.
func (*Service) PendantOperlog ¶
func (s *Service) PendantOperlog(c context.Context, pn, ps int) (opers []*model.PendantOperLog, pager *model.Pager, err error)
PendantOperlog pendant operactlog .
func (*Service) PendantOrders ¶
func (s *Service) PendantOrders(c context.Context, arg *model.ArgPendantOrder) (pos []*model.PendantOrder, pager *model.Pager, err error)
PendantOrders get pendant order historys.
func (*Service) PendantPKG ¶
func (s *Service) PendantPKG(c context.Context, uid int64) (pkgs []*model.PendantPKG, equip *model.PendantPKG, err error)
PendantPKG get pendant in pkg.
func (*Service) UpPendantGroup ¶
UpPendantGroup update pendant group.
func (*Service) UpPendantGroupStatus ¶
UpPendantGroupStatus update pendant group status
func (*Service) UpPendantInfo ¶
UpPendantInfo update pendant info .
func (*Service) UpPendantInfoStatus ¶
UpPendantInfoStatus update pendant info status
func (*Service) UpPendantPKG ¶
func (s *Service) UpPendantPKG(c context.Context, uid, pid int64, day int64, msg *model.SysMsg, oid int64) (err error)
UpPendantPKG update user pkg.
func (*Service) Upload ¶
func (s *Service) Upload(c context.Context, fileName, fileType string, expire int64, body io.Reader) (location string, err error)
Upload http upload file.
func (*Service) UserPKGDetails ¶
func (s *Service) UserPKGDetails(c context.Context, uid, pid int64) (pkg *model.PendantPKG, err error)
UserPKGDetails get user pkg 's pendant details.