service

package
v0.0.0-...-368aa3d Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserSvc

type UserSvc interface {
	GetUser(req model.User)
	GetUserList(req model.User)
	Add(req model.User)
	Update(req model.User)
}

func NewUserSvcImpl

func NewUserSvcImpl() UserSvc

type UserSvcImpl

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

UserSvcImpl

@Description:  service的实现定义,可以使用全局注册的db进行操作,减少dao层定义,具体按项目分层架构

func (*UserSvcImpl) Add

func (s *UserSvcImpl) Add(req model.User)

func (UserSvcImpl) Delete

func (s UserSvcImpl) Delete(id int)

func (*UserSvcImpl) GetUser

func (s *UserSvcImpl) GetUser(req model.User)

func (*UserSvcImpl) GetUserList

func (s *UserSvcImpl) GetUserList(req model.User)

func (UserSvcImpl) Update

func (s UserSvcImpl) Update(req model.User)

Jump to

Keyboard shortcuts

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