|
|
|
@ -40,9 +40,9 @@ type UserDatabase interface {
|
|
|
|
|
Page(ctx context.Context, pageNumber, showNumber int32) (users []*relation.UserModel, count int64, err error)
|
|
|
|
|
// 只要有一个存在就为true
|
|
|
|
|
IsExist(ctx context.Context, userIDs []string) (exist bool, err error)
|
|
|
|
|
//获取所有用户ID
|
|
|
|
|
// 获取所有用户ID
|
|
|
|
|
GetAllUserID(ctx context.Context, pageNumber, showNumber int32) ([]string, error)
|
|
|
|
|
//函数内部先查询db中是否存在,存在则什么都不做;不存在则插入
|
|
|
|
|
// 函数内部先查询db中是否存在,存在则什么都不做;不存在则插入
|
|
|
|
|
InitOnce(ctx context.Context, users []*relation.UserModel) (err error)
|
|
|
|
|
// 获取用户总数
|
|
|
|
|
CountTotal(ctx context.Context, before *time.Time) (int64, error)
|
|
|
|
|