19 lines
661 B
Go
19 lines
661 B
Go
package user
|
|
|
|
import (
|
|
"busniess-user-center/internal/models"
|
|
"context"
|
|
)
|
|
|
|
type UserService interface {
|
|
Add(ctx context.Context, info *models.AddInfo) (id uint, err error)
|
|
Login(ctx context.Context, lInfo models.LoginInfo) error
|
|
Logout(ctx context.Context) error
|
|
Modify(ctx context.Context, mInfo *models.ModifyInfo) error
|
|
Disable(ctx context.Context, req *models.Enable) error
|
|
Enable(ctx context.Context, req *models.Enable) error
|
|
Search(ctx context.Context, query *models.Query) ([]models.User, error)
|
|
ResetPwd(ctx context.Context, req *models.ResetPwdReq) error
|
|
GetUser(ctx context.Context, req *models.GetUserReq) (user models.User, err error)
|
|
}
|