controllers

package
v0.0.0-...-3f08e25 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DepartmentController

type DepartmentController struct {
	Service services.DepartmentService
}

func (*DepartmentController) GetBy

func (c *DepartmentController) GetBy(ctx iris.Context, id int64) (department *datamodels.Department, success bool)

获取部门详情

func (*DepartmentController) GetByUserList

func (c *DepartmentController) GetByUserList(ctx iris.Context, id int64) (users []*datamodels.User, success bool)

获取部门用户列表

func (*DepartmentController) GetList

func (c *DepartmentController) GetList(ctx iris.Context) (departments []*datamodels.Department, success bool)

获取部门列表

func (*DepartmentController) GetListBy

func (c *DepartmentController) GetListBy(ctx iris.Context, page int) (departments []*datamodels.Department, success bool)

获取部门列表

type IndexController

type IndexController struct {
	Session   *sessions.Session
	StartTime time.Time
}

func (*IndexController) Get

func (c *IndexController) Get(ctx iris.Context)

type MessageController

type MessageController struct {
	Service services.MessageService
}

func (*MessageController) GetBy

func (c *MessageController) GetBy(ctx iris.Context, id int64) (message *datamodels.Message, success bool)

func (*MessageController) GetList

func (c *MessageController) GetList(ctx iris.Context) (messages []*datamodels.Message, success bool)

获取消息列表

func (*MessageController) GetListBy

func (c *MessageController) GetListBy(ctx iris.Context, page int) (messages []*datamodels.Message, success bool)

获取消息列表

func (*MessageController) PostCreate

func (c *MessageController) PostCreate(ctx iris.Context) (message *datamodels.Message, err error)

发送工作消息

type MovieController

type MovieController struct {
	Service services.MovieService
}

func (*MovieController) DeleteBy

func (c *MovieController) DeleteBy(id int64) (ok bool)

func (*MovieController) Get

func (c *MovieController) Get() (results []*datamodels.Movie)

func (*MovieController) GetAll

func (c *MovieController) GetAll() (results []*datamodels.Movie)

func (*MovieController) GetBy

func (c *MovieController) GetBy(id int64) (movie *datamodels.Movie, found bool)

func (*MovieController) PostCreate

func (c *MovieController) PostCreate() (movie *datamodels.Movie)

type RsyncController

type RsyncController struct {
}

func (*RsyncController) Get

func (c *RsyncController) Get(ctx iris.Context)

type UserController

type UserController struct {
	Service services.UserService
}

func (*UserController) GetBy

func (c *UserController) GetBy(idOrName string) (user *datamodels.User, found bool)

func (*UserController) GetByMessageList

func (c *UserController) GetByMessageList(ctx iris.Context, idOrName string) (messages []*datamodels.Message, success bool)

获取用户消息列表

func (*UserController) GetList

func (c *UserController) GetList(ctx iris.Context) (users []*datamodels.User, success bool)

func (*UserController) GetListBy

func (c *UserController) GetListBy(ctx iris.Context, page int) (users []*datamodels.User, success bool)

Jump to

Keyboard shortcuts

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