Documentation ¶
Index ¶
- type DepartmentController
- func (c *DepartmentController) GetBy(ctx iris.Context, id int64) (department *datamodels.Department, success bool)
- func (c *DepartmentController) GetByUserList(ctx iris.Context, id int64) (users []*datamodels.User, success bool)
- func (c *DepartmentController) GetList(ctx iris.Context) (departments []*datamodels.Department, success bool)
- func (c *DepartmentController) GetListBy(ctx iris.Context, page int) (departments []*datamodels.Department, success bool)
- type IndexController
- type MessageController
- func (c *MessageController) GetBy(ctx iris.Context, id int64) (message *datamodels.Message, success bool)
- func (c *MessageController) GetList(ctx iris.Context) (messages []*datamodels.Message, success bool)
- func (c *MessageController) GetListBy(ctx iris.Context, page int) (messages []*datamodels.Message, success bool)
- func (c *MessageController) PostCreate(ctx iris.Context) (message *datamodels.Message, err error)
- type MovieController
- func (c *MovieController) DeleteBy(id int64) (ok bool)
- func (c *MovieController) Get() (results []*datamodels.Movie)
- func (c *MovieController) GetAll() (results []*datamodels.Movie)
- func (c *MovieController) GetBy(id int64) (movie *datamodels.Movie, found bool)
- func (c *MovieController) PostCreate() (movie *datamodels.Movie)
- type RsyncController
- type UserController
- func (c *UserController) GetBy(idOrName string) (user *datamodels.User, found bool)
- func (c *UserController) GetByMessageList(ctx iris.Context, idOrName string) (messages []*datamodels.Message, success bool)
- func (c *UserController) GetList(ctx iris.Context) (users []*datamodels.User, success bool)
- func (c *UserController) GetListBy(ctx iris.Context, page int) (users []*datamodels.User, success bool)
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 ¶
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)
Click to show internal directories.
Click to hide internal directories.