service

package
v0.0.0-...-41631cc Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderSet = wire.NewSet(NewUserService)

Functions

This section is empty.

Types

type UserDTO

type UserDTO struct {
	v1.UserDO
}

type UserDTOList

type UserDTOList struct {
	TotalCount int64      // 总数
	Items      []*UserDTO // 数据
}

type UserSrv

type UserSrv interface {
	List(ctx context.Context, orderBy []string, opts metav1.ListMeta) (*UserDTOList, error)
	Create(ctx context.Context, user *UserDTO) error
	Update(ctx context.Context, user *UserDTO) error
	GetByID(ctx context.Context, id uint64) (*UserDTO, error)
	GetByMobile(ctx context.Context, mobile string) (*UserDTO, error)
}

func NewUserService

func NewUserService(us v1.UserStore) UserSrv

Jump to

Keyboard shortcuts

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