member

package
v0.0.0-...-83adff0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 42 Imported by: 0

Documentation

Index

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 New

func New(c *conf.Config) (s *Service)

New create service instance and return.

func (*Service) Account

func (s *Service) Account(c context.Context, mid int64, ip string) (acc *model.Account, err error)

Account get Account info.

func (*Service) Close

func (s *Service) Close()

Close dao.

func (*Service) CloseNoticeV2

func (s *Service) CloseNoticeV2(c context.Context, mid int64, uuid string) (err error)

CloseNoticeV2 close notice v2.

func (*Service) Coin

func (s *Service) Coin(c context.Context, mid int64) (logCoin *model.Coin, err error)

Coin coin.

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) LogCoin

func (s *Service) LogCoin(c context.Context, mid int64) (logCoin *model.LogCoins, err error)

LogCoin Log Money

func (*Service) LogExp

func (s *Service) LogExp(c context.Context, mid int64) (logExp *model.LogExps, err error)

LogExp Log Exp

func (*Service) LogLogin

func (s *Service) LogLogin(c context.Context, mid int64) (logLogins *model.LogLogins, err error)

LogLogin logLogin

func (*Service) LogMoral

func (s *Service) LogMoral(c context.Context, mid int64) (logMorals *model.LogMorals, err error)

LogMoral Log Moral

func (*Service) MedalAllInfo

func (s *Service) MedalAllInfo(c context.Context, mid int64) (res *model.MedalAllInfos, err error)

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

func (s *Service) MedalInstall(c context.Context, mid, nid int64, isActivated int8) (err error)

MedalInstall install or uninstall medal.

func (*Service) MedalMyInfo

func (s *Service) MedalMyInfo(c context.Context, mid int64) (res []*model.MedalMyInfos, err error)

MedalMyInfo return medal my info.

func (*Service) MedalPopup

func (s *Service) MedalPopup(c context.Context, mid int64) (res *model.MedalPopup, err error)

MedalPopup return medal popup.

func (*Service) MedalUserInfo

func (s *Service) MedalUserInfo(c context.Context, mid int64) (res *model.MedalUserInfo, err error)

MedalUserInfo return medal user info.

func (*Service) MobileVerify

func (s *Service) MobileVerify(c context.Context, mid int64, mobile string, country int64) error

MobileVerify is.

func (*Service) MonthlyOfficialSubmittedTimes

func (s *Service) MonthlyOfficialSubmittedTimes(c context.Context, mid int64) *model.OfficialSubmittedTimes

MonthlyOfficialSubmittedTimes is

func (*Service) NickFree

func (s *Service) NickFree(c context.Context, mid int64) (nickFree *model.NickFree, err error)

NickFree .

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

func (s *Service) NotityPurgeCache(ctx context.Context, mid int64, action string) error

NotityPurgeCache is

func (*Service) OfficialAutoFillDoc

func (s *Service) OfficialAutoFillDoc(ctx context.Context, mid int64) (*memmdl.OfficialDoc, error)

OfficialAutoFillDoc is

func (*Service) OfficialConditions

func (s *Service) OfficialConditions(c context.Context, mid int64) (*model.OfficialConditions, error)

OfficialConditions is.

func (*Service) OfficialDoc

func (s *Service) OfficialDoc(c context.Context, mid int64) (*memmdl.OfficialDoc, error)

OfficialDoc is.

func (*Service) Ping

func (s *Service) Ping(c context.Context) (err error)

Ping check server ok.

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) Reward

func (s *Service) Reward(c context.Context, mid int64) (reward *model.Reward, err error)

Reward exp reward.

func (*Service) SettingsInfo

func (s *Service) SettingsInfo(c context.Context, mid int64) (user *model.User, err error)

SettingsInfo Settings Info

func (*Service) Status

func (s *Service) Status(c context.Context, mid int64, uuid string) (res *secmodel.Msg, err error)

Status query user's remote login status.

func (*Service) SubmitOfficial

func (s *Service) SubmitOfficial(c context.Context, mid int64, apply *model.OfficialApply) error

SubmitOfficial is.

func (*Service) UpdateBirthday

func (s *Service) UpdateBirthday(c context.Context, mid int64, birthday string) (err error)

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

func (s *Service) UpdateName(c context.Context, mid int64, name, appkey string) error

UpdateName .

func (*Service) UpdateSettings

func (s *Service) UpdateSettings(c context.Context, mid int64, settings *model.Settings) (err error)

UpdateSettings Update Settings

func (*Service) UpdateSex

func (s *Service) UpdateSex(c context.Context, mid, sex int64) (err error)

UpdateSex update sex.

func (*Service) UpdateSign

func (s *Service) UpdateSign(c context.Context, mid int64, sign string) error

UpdateSign update sign.

func (*Service) UploadImage

func (s *Service) UploadImage(c context.Context, fileType string, body []byte) (url string, err error)

UploadImage article upload cover.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL