user

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCityByIp added in v0.3.1

func GetCityByIp(ip string) string

GetCityByIp 获取ip所属城市

func GetNullVal

func GetNullVal(val *wrappers.StringValue) *string

func UserInfoToApi

func UserInfoToApi(ui *sys.UserInfo) *types.UserInfo

func UserInfoToRpc added in v0.5.2

func UserInfoToRpc(ui *types.UserInfo) *sys.UserInfo

Types

type CaptchaLogic

type CaptchaLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewCaptchaLogic

func NewCaptchaLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CaptchaLogic

func (*CaptchaLogic) Captcha

func (l *CaptchaLogic) Captcha(req *types.UserCaptchaReq) (resp *types.UserCaptchaResp, err error)

type CreateLogic

type CreateLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewCreateLogic

func NewCreateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CreateLogic

func (*CreateLogic) Create

func (l *CreateLogic) Create(req *types.UserInfo) (resp *types.UserCreateResp, err error)

type DeleteLogic

type DeleteLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewDeleteLogic

func NewDeleteLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeleteLogic

func (*DeleteLogic) Delete

func (l *DeleteLogic) Delete(req *types.UserDeleteReq) error

type IndexLogic

type IndexLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewIndexLogic

func NewIndexLogic(ctx context.Context, svcCtx *svc.ServiceContext) *IndexLogic

func (*IndexLogic) Index

func (l *IndexLogic) Index(req *types.UserIndexReq) (resp *types.UserIndexResp, err error)

type LoginLogic

type LoginLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewLoginLogic

func NewLoginLogic(ctx context.Context, svcCtx *svc.ServiceContext) *LoginLogic

func (*LoginLogic) Login

func (l *LoginLogic) Login(req *types.UserLoginReq) (resp *types.UserLoginResp, err error)

type ReadLogic

type ReadLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewReadLogic

func NewReadLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ReadLogic

func (*ReadLogic) Read

func (l *ReadLogic) Read(req *types.UserReadReq) (resp *types.UserInfo, err error)

type ResourceReadLogic

type ResourceReadLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewResourceReadLogic

func NewResourceReadLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ResourceReadLogic

func (*ResourceReadLogic) ResourceRead

func (l *ResourceReadLogic) ResourceRead() (resp *types.UserResourceReadResp, err error)

type UpdateLogic

type UpdateLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewUpdateLogic

func NewUpdateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateLogic

func (*UpdateLogic) Update

func (l *UpdateLogic) Update(req *types.UserInfo) error

Jump to

Keyboard shortcuts

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