Documentation ¶
Index ¶
- type NotifyInfo
- type Service
- func (s *Service) Account(c context.Context, mid int64, ip string) (acc *model.Account, err error)
- func (s *Service) Close()
- func (s *Service) CloseNoticeV2(c context.Context, mid int64, uuid string) (err error)
- func (s *Service) Coin(c context.Context, mid int64) (logCoin *model.Coin, err error)
- func (s *Service) IdentifyInfo(c context.Context, mid int64, ip string) (res *model.Identification, err error)
- func (s *Service) LogCoin(c context.Context, mid int64) (logCoin *model.LogCoins, err error)
- func (s *Service) LogExp(c context.Context, mid int64) (logExp *model.LogExps, err error)
- func (s *Service) LogLogin(c context.Context, mid int64) (logLogins *model.LogLogins, err error)
- func (s *Service) LogMoral(c context.Context, mid int64) (logMorals *model.LogMorals, err error)
- func (s *Service) MedalAllInfo(c context.Context, mid int64) (res *model.MedalAllInfos, err error)
- func (s *Service) MedalHomeInfo(c context.Context, mid int64) (res []*model.MedalHomeInfo, err error)
- func (s *Service) MedalInstall(c context.Context, mid, nid int64, isActivated int8) (err error)
- func (s *Service) MedalMyInfo(c context.Context, mid int64) (res []*model.MedalMyInfos, err error)
- func (s *Service) MedalPopup(c context.Context, mid int64) (res *model.MedalPopup, err error)
- func (s *Service) MedalUserInfo(c context.Context, mid int64) (res *model.MedalUserInfo, err error)
- func (s *Service) MobileVerify(c context.Context, mid int64, mobile string, country int64) error
- func (s *Service) MonthlyOfficialSubmittedTimes(c context.Context, mid int64) *model.OfficialSubmittedTimes
- func (s *Service) NickFree(c context.Context, mid int64) (nickFree *model.NickFree, err error)
- func (s *Service) NoticeV2(c context.Context, mid int64, uuid string, pf string, b int64) (res *model.Notice2, err error)
- func (s *Service) NotityPurgeCache(ctx context.Context, mid int64, action string) error
- func (s *Service) OfficialAutoFillDoc(ctx context.Context, mid int64) (*memmdl.OfficialDoc, error)
- func (s *Service) OfficialConditions(c context.Context, mid int64) (*model.OfficialConditions, error)
- func (s *Service) OfficialDoc(c context.Context, mid int64) (*memmdl.OfficialDoc, error)
- func (s *Service) Ping(c context.Context) (err error)
- func (s *Service) ReplyHistoryList(c context.Context, mid int64, stime, etime, order, sort string, pn, ps int64, ...) (rhl *model.ReplyHistory, err error)
- func (s *Service) Reward(c context.Context, mid int64) (reward *model.Reward, err error)
- func (s *Service) SettingsInfo(c context.Context, mid int64) (user *model.User, err error)
- func (s *Service) Status(c context.Context, mid int64, uuid string) (res *secmodel.Msg, err error)
- func (s *Service) SubmitOfficial(c context.Context, mid int64, apply *model.OfficialApply) error
- func (s *Service) UpdateBirthday(c context.Context, mid int64, birthday string) (err error)
- func (s *Service) UpdateFace(c context.Context, mid int64, faceFile []byte, ftype string) (string, error)
- func (s *Service) UpdateName(c context.Context, mid int64, name, appkey string) error
- func (s *Service) UpdateSettings(c context.Context, mid int64, settings *model.Settings) (err error)
- func (s *Service) UpdateSex(c context.Context, mid, sex int64) (err error)
- func (s *Service) UpdateSign(c context.Context, mid int64, sign string) error
- func (s *Service) UploadImage(c context.Context, fileType string, body []byte) (url string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NotifyInfo ¶
type NotifyInfo struct { Uname string `json:"uname"` Mid int64 `json:"mid"` Type string `json:"type"` NewName string `json:"newName"` Action string `json:"action"` }
NotifyInfo notify info.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service struct of service.
func (*Service) CloseNoticeV2 ¶
CloseNoticeV2 close notice v2.
func (*Service) IdentifyInfo ¶
func (s *Service) IdentifyInfo(c context.Context, mid int64, ip string) (res *model.Identification, err error)
IdentifyInfo get user identify info.
func (*Service) MedalAllInfo ¶
MedalAllInfo return medal all info.
func (*Service) MedalHomeInfo ¶
func (s *Service) MedalHomeInfo(c context.Context, mid int64) (res []*model.MedalHomeInfo, err error)
MedalHomeInfo return user mdeal home info.
func (*Service) MedalInstall ¶
MedalInstall install or uninstall medal.
func (*Service) MedalMyInfo ¶
MedalMyInfo return medal my info.
func (*Service) MedalPopup ¶
MedalPopup return medal popup.
func (*Service) MedalUserInfo ¶
MedalUserInfo return medal user info.
func (*Service) MobileVerify ¶
MobileVerify is.
func (*Service) MonthlyOfficialSubmittedTimes ¶
func (s *Service) MonthlyOfficialSubmittedTimes(c context.Context, mid int64) *model.OfficialSubmittedTimes
MonthlyOfficialSubmittedTimes is
func (*Service) NoticeV2 ¶
func (s *Service) NoticeV2(c context.Context, mid int64, uuid string, pf string, b int64) (res *model.Notice2, err error)
NoticeV2 notice v2.
func (*Service) NotityPurgeCache ¶
NotityPurgeCache is
func (*Service) OfficialAutoFillDoc ¶
OfficialAutoFillDoc is
func (*Service) OfficialConditions ¶
func (s *Service) OfficialConditions(c context.Context, mid int64) (*model.OfficialConditions, error)
OfficialConditions is.
func (*Service) OfficialDoc ¶
OfficialDoc is.
func (*Service) ReplyHistoryList ¶
func (s *Service) ReplyHistoryList(c context.Context, mid int64, stime, etime, order, sort string, pn, ps int64, accessKey, cookie string) (rhl *model.ReplyHistory, err error)
ReplyHistoryList reply history list
func (*Service) SettingsInfo ¶
SettingsInfo Settings Info
func (*Service) SubmitOfficial ¶
SubmitOfficial is.
func (*Service) UpdateBirthday ¶
UpdateBirthday update birthday.
func (*Service) UpdateFace ¶
func (s *Service) UpdateFace(c context.Context, mid int64, faceFile []byte, ftype string) (string, error)
UpdateFace Update Face
func (*Service) UpdateName ¶
UpdateName .
func (*Service) UpdateSettings ¶
func (s *Service) UpdateSettings(c context.Context, mid int64, settings *model.Settings) (err error)
UpdateSettings Update Settings
func (*Service) UpdateSign ¶
UpdateSign update sign.