service

package
v0.0.0-...-b480da5 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GroupService

type GroupService struct {
	UserId int64
	// contains filtered or unexported fields
}

func NewGroupService

func NewGroupService(requestId string, db *xorm.Session, userId int64) GroupService

func (GroupService) GetAllGroupByUser

func (groupService GroupService) GetAllGroupByUser() []*model.GroupBO

type LoginParam

type LoginParam struct {
	Type     string `form:"type" binding:"required,oneof=email username"`
	Account  string `form:"account" binding:"required,max=200"`
	Password string `form:"password" binding:"required,max=200"`
}

type RegisterParam

type RegisterParam struct {
	Email    string `form:"email" binding:"required,email,max=200"`
	Username string `form:"username" binding:"required,max=200"`
	Password string `form:"password" binding:"required,max=200"`
}

type UserService

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

func NewUserService

func NewUserService(requestId string, db *xorm.Session) UserService

func (UserService) Login

func (userService UserService) Login(param *LoginParam) string

func (UserService) Register

func (userService UserService) Register(param *RegisterParam)

Jump to

Keyboard shortcuts

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