data

package
v0.0.0-...-d272d5c Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2021 License: MIT, MIT Imports: 15 Imported by: 0

README

Data

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is data providers.

Functions

func NewFriendRepo

func NewFriendRepo(data *Data, logger log.Logger) biz.FriendRepo

NewFriendRepo 好友

func NewUserRepo

func NewUserRepo(data *Data, logger log.Logger) biz.UserRepo

NewUserRepo 用户

Types

type Data

type Data struct {
	// contains filtered or unexported fields
}

Data .

func NewData

func NewData(c *conf.Data, logger log.Logger) (*Data, func(), error)

NewData 数据库连接 .

type FriendRepo

type FriendRepo struct {
	// contains filtered or unexported fields
}

FriendRepo .

func (*FriendRepo) CreateFriend

func (fr *FriendRepo) CreateFriend(_ context.Context, req *biz.CreateFriendReq) error

CreateFriend 添加好友

func (*FriendRepo) ListUserFriend

func (fr *FriendRepo) ListUserFriend(_ context.Context, req *biz.ListFriendReq) ([]biz.ListUserFriendRsp, error)

ListUserFriend 列表

func (*FriendRepo) UpdateFriendRemark

func (fr *FriendRepo) UpdateFriendRemark(_ context.Context, req *biz.UpdateFriendRemarkReq) error

UpdateFriendRemark 修改好友备注

func (*FriendRepo) UpdateFriendStatus

func (fr *FriendRepo) UpdateFriendStatus(_ context.Context, req *biz.UpdateFriendStatusReq) error

UpdateFriendStatus 修改好友状态

type UserRepo

type UserRepo struct {
	// contains filtered or unexported fields
}

UserRepo .

func (*UserRepo) CreateUser

func (uc *UserRepo) CreateUser(_ context.Context, user *biz.UserInfo) error

CreateUser 创建用户

func (*UserRepo) DeleteUser

func (uc *UserRepo) DeleteUser(_ context.Context, req *biz.DeleteUserReq) error

DeleteUser 删除账户

func (*UserRepo) ForgetPassword

func (uc *UserRepo) ForgetPassword(_ context.Context, req *biz.ForgetPasswordReq) error

ForgetPassword 忘记密码

func (*UserRepo) InfoAccount

func (uc *UserRepo) InfoAccount(_ context.Context, id int64) (*biz.InfoAccountRsp, error)

InfoAccount 用户身份信息

func (*UserRepo) InfoFriendPass

func (uc *UserRepo) InfoFriendPass(_ context.Context, id int64) (*biz.InfoFriendPassRsp, error)

InfoFriendPass 用户添加好友方式

func (*UserRepo) InfoSnapCall

func (uc *UserRepo) InfoSnapCall(_ context.Context, id int64) (*bool, error)

InfoSnapCall 用户是否允许临时会话

func (*UserRepo) InfoUserBase

func (uc *UserRepo) InfoUserBase(_ context.Context, id int64) (*biz.InfoUserBaseRsp, error)

InfoUserBase 用户基本信息

func (*UserRepo) UpdateAvatarUrl

func (uc *UserRepo) UpdateAvatarUrl(_ context.Context, req *biz.UpdateAvatarUrlReq) error

UpdateAvatarUrl 修改头像

func (*UserRepo) UpdateFriendPass

func (uc *UserRepo) UpdateFriendPass(_ context.Context, req *biz.UpdateFriendPassReq) error

UpdateFriendPass 修改添加好友方式

func (*UserRepo) UpdateIdCard

func (uc *UserRepo) UpdateIdCard(_ context.Context, req *biz.UpdateIdCardReq) error

UpdateIdCard 修改身份信息

func (*UserRepo) UpdateIntroduce

func (uc *UserRepo) UpdateIntroduce(_ context.Context, req *biz.UpdateIntroduceReq) error

UpdateIntroduce 修改个人介绍

func (*UserRepo) UpdateNickname

func (uc *UserRepo) UpdateNickname(_ context.Context, req *biz.UpdateNicknameReq) error

UpdateNickname 修改昵称

func (*UserRepo) UpdatePassword

func (uc *UserRepo) UpdatePassword(_ context.Context, req *biz.UpdatePasswordReq) error

UpdatePassword 修改密码

func (*UserRepo) UpdatePersonalSign

func (uc *UserRepo) UpdatePersonalSign(_ context.Context, req *biz.UpdatePersonalSignReq) error

UpdatePersonalSign 修改个性签名

func (*UserRepo) UpdatePhone

func (uc *UserRepo) UpdatePhone(_ context.Context, req *biz.UpdatePhoneReq) error

UpdatePhone 修改手机号

func (*UserRepo) UpdateSex

func (uc *UserRepo) UpdateSex(_ context.Context, req *biz.UpdateSexReq) error

UpdateSex 修改性别

func (*UserRepo) UpdateSnapCall

func (uc *UserRepo) UpdateSnapCall(_ context.Context, req *biz.UpdateSnapCallReq) error

UpdateSnapCall 修改是否允许临时会话

Jump to

Keyboard shortcuts

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