controllers

package
v0.0.0-...-3426d20 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2018 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AutoGenerated

type AutoGenerated struct {
	LikeID  string `json:"like_id"`
	ComicID string `json:"comic_id"`
	Title   string `json:"title"`
	Image   string `json:"image"`
	URL     string `json:"url"`
}

type BaseController

type BaseController struct {
	beego.Controller
}

BaseController operations for Base

func (*BaseController) Finish

func (c *BaseController) Finish()

func (*BaseController) Prepare

func (c *BaseController) Prepare()

type FollowController

type FollowController struct {
	beego.Controller
}

func (*FollowController) Get

func (c *FollowController) Get()

func (*FollowController) ToggleFollow

func (c *FollowController) ToggleFollow()

type Groups

type Groups struct {
	Name         string `json:"name"`
	Description  string `json:"description"`
	ReleaseDelay int    `json:"releasedelay"`
	Urls         string `json:"urls"`
}

type GroupsScanlationController

type GroupsScanlationController struct {
	beego.Controller
}

GroupsScanlationController operations for GroupsScanlation

func (*GroupsScanlationController) Delete

func (c *GroupsScanlationController) Delete()

Delete ... @Title Delete @Description delete the GroupsScanlation @Param name path string true "The name you want to delete" @Success 200 {string} delete success! @Failure 403 name is empty @router /:name [delete]

func (*GroupsScanlationController) GetAll

func (c *GroupsScanlationController) GetAll()

GetAll ... @Title Get All @Description get GroupsScanlation @Param query query string false "Filter. e.g. col1:v1,col2:v2 ..." @Param fields query string false "Fields returned. e.g. col1,col2 ..." @Param sortby query string false "Sorted-by fields. e.g. col1,col2 ..." @Param order query string false "Order corresponding to each sortby field, if single value, apply to all sortby fields. e.g. desc,asc ..." @Param limit query string false "Limit the size of result set. Must be an integer" @Param offset query string false "Start position of result set. Must be an integer" @Success 200 {object} models.GroupsScanlation @Failure 403 @router / [get]

func (*GroupsScanlationController) GetOne

func (c *GroupsScanlationController) GetOne()

GetOne ... @Title Get One @Description get GroupsScanlation by name @Param name path string true "The key for staticblock" @Success 200 {object} models.GroupsScanlation @Failure 403 :name is empty @router /:name [get]

func (*GroupsScanlationController) Post

func (c *GroupsScanlationController) Post()

Post ... @Title Create @Description create Groups @Param body body GroupsForm true "body for GroupsScanlation content" @Success 201 {object} models.GroupsScanlation @Failure 403 body is empty @router / [post]

func (*GroupsScanlationController) Put

func (c *GroupsScanlationController) Put()

@Title Put @Description update the GroupsScanlation @Param name path string true "The name you want to update" @Param body body models.GroupsScanlation true "body for GroupsScanlation content" @Success 200 {object} models.GroupsScanlation @Failure 403 :name is not int @router /:name [put]

func (*GroupsScanlationController) URLMapping

func (c *GroupsScanlationController) URLMapping()

URLMapping ...

type ImportController

type ImportController struct {
	beego.Controller
}

ImportController operations for Import

func (*ImportController) Delete

func (c *ImportController) Delete()

Delete ... @Title Delete @Description delete the Import @Param id path string true "The id you want to delete" @Success 200 {string} delete success! @Failure 403 id is empty @router /:id [delete]

func (*ImportController) GetAll

func (c *ImportController) GetAll()

GetAll ... @Title GetAll @Description get Import @Param query query string false "Filter. e.g. col1:v1,col2:v2 ..." @Param fields query string false "Fields returned. e.g. col1,col2 ..." @Param sortby query string false "Sorted-by fields. e.g. col1,col2 ..." @Param order query string false "Order corresponding to each sortby field, if single value, apply to all sortby fields. e.g. desc,asc ..." @Param limit query string false "Limit the size of result set. Must be an integer" @Param offset query string false "Start position of result set. Must be an integer" @Success 200 {object} models.Import @Failure 403 @router / [get]

func (*ImportController) GetOne

func (c *ImportController) GetOne()

GetOne ... @Title GetOne @Description get Import by id @Param id path string true "The key for staticblock" @Success 200 {object} models.Import @Failure 403 :id is empty @router /:id [get]

func (*ImportController) Post

func (c *ImportController) Post()

Post ... @Title Create @Description create Import @Param body body models.Import true "body for Import content" @Success 201 {object} models.Import @Failure 403 body is empty @router / [post]

func (*ImportController) Put

func (c *ImportController) Put()

Put ... @Title Put @Description update the Import @Param id path string true "The id you want to update" @Param body body models.Import true "body for Import content" @Success 200 {object} models.Import @Failure 403 :id is not int @router /:id [put]

func (*ImportController) URLMapping

func (c *ImportController) URLMapping()

URLMapping ...

type LanguagesController

type LanguagesController struct {
	beego.Controller
}

LanguagesController operations for Languages

func (*LanguagesController) Delete

func (c *LanguagesController) Delete()

Delete ... @Title Delete @Description delete the Languages @Param id path string true "The id you want to delete" @Success 200 {string} delete success! @Failure 403 id is empty @router /:id [delete]

func (*LanguagesController) GetAll

func (c *LanguagesController) GetAll()

GetAll ... @Title Get All @Description get Languages @Success 200 {object} []models.Languages @Failure 403 @router / [get]

func (*LanguagesController) Post

func (c *LanguagesController) Post()

Post ... @Title Post @Description create Languages @Param body body models.Languages true "body for Languages content" @Success 201 {int} models.Languages @Failure 403 body is empty @router / [post]

func (*LanguagesController) URLMapping

func (c *LanguagesController) URLMapping()

URLMapping ...

type LoginController

type LoginController struct {
	beego.Controller
}

LoginController operations for Login

func (*LoginController) Post

func (c *LoginController) Post()

Post ... @Title login @Description create Login @Param body body models.Login true "The object content" @Success 201 {string} @Failure 403 {string} @router / [post]

func (*LoginController) URLMapping

func (c *LoginController) URLMapping()

URLMapping ...

type LogoutController

type LogoutController struct {
	BaseController
}

LogoutController operations for Logout

func (*LogoutController) Get

func (c *LogoutController) Get()

Get ... @Title Logout @Description Logout @Param body body models.Users true "body for Logout content" @Success 201 {object} models.Users @Failure 403 body is empty @router / [get]

func (*LogoutController) URLMapping

func (c *LogoutController) URLMapping()

URLMapping ...

type NestFinisher

type NestFinisher interface {
	NestFinish()
}

type NestPreparer

type NestPreparer interface {
	NestPrepare()
}

type ReaderController

type ReaderController struct {
	beego.Controller
}

ReaderController operations for Reader

func (*ReaderController) GetOne

func (c *ReaderController) GetOne()

GetOne ... @Title Get One @Description get SeriesChapters @Param query query string false "Filter. e.g. col1:v1,col2:v2 ..." @Param fields query string false "Fields returned. e.g. col1,col2 ..." @Param sortby query string false "Sorted-by fields. e.g. col1,col2 ..." @Param order query string false "Order corresponding to each sortby field, if single value, apply to all sortby fields. e.g. desc,asc ..." @Param limit query string false "Limit the size of result set. Must be an integer" @Param offset query string false "Start position of result set. Must be an integer" @Success 200 {object} models.SeriesChapters @Failure 403 @router /:hash [get]

func (*ReaderController) URLMapping

func (c *ReaderController) URLMapping()

URLMapping ...

type RegisterController

type RegisterController struct {
	beego.Controller
}

RegisterController operations for Signup

func (*RegisterController) Post

func (c *RegisterController) Post()

Post ... @Title Post @Description create Users @Param body body models.Signup true "body for Users content" @Success 201 {string} models.Users @Failure 403 {string} @router / [post]

func (*RegisterController) URLMapping

func (c *RegisterController) URLMapping()

URLMapping ...

type Response

type Response struct {
	Success  bool          `json:"success"`
	Error    string        `json:"errors,omitempty`
	Response []interface{} `json:"response"`
	Count    int64         `json:"count"`
}

type SeriesChaptersController

type SeriesChaptersController struct {
	beego.Controller
}

SeriesChaptersController operations for SeriesChapters

func (*SeriesChaptersController) Delete

func (c *SeriesChaptersController) Delete()

Delete ... @Title Delete @Description delete the SeriesChapters @Param id path string true "The id you want to delete" @Success 200 {string} delete success! @Failure 403 id is empty @router /:id [delete]

func (*SeriesChaptersController) GetAll

func (c *SeriesChaptersController) GetAll()

GetAll ... @Title Get All @Description get SeriesChapters @Param query query string false "Filter. e.g. col1:v1,col2:v2 ..." @Param fields query string false "Fields returned. e.g. col1,col2 ..." @Param sortby query string false "Sorted-by fields. e.g. col1,col2 ..." @Param order query string false "Order corresponding to each sortby field, if single value, apply to all sortby fields. e.g. desc,asc ..." @Param limit query string false "Limit the size of result set. Must be an integer" @Param offset query string false "Start position of result set. Must be an integer" @Success 200 {object} models.SeriesChapters @Failure 403 @router / [get]

func (*SeriesChaptersController) GetOne

func (c *SeriesChaptersController) GetOne()

GetOne ... @Title Get One @Description get SeriesChapters by id @Param id path string true "The key for staticblock" @Success 200 {object} models.SeriesChapters @Failure 403 :id is empty @router /:id [get]

func (*SeriesChaptersController) Post

func (c *SeriesChaptersController) Post()

Post ... @Title Post @Description create SeriesChapters @Param body body models.SeriesChapters true "body for SeriesChapters content" @Success 201 {int} models.SeriesChapters @Failure 403 body is empty @router / [post]

func (*SeriesChaptersController) Put

func (c *SeriesChaptersController) Put()

Put ... @Title Put @Description update the SeriesChapters @Param id path string true "The id you want to update" @Param body body models.SeriesChapters true "body for SeriesChapters content" @Success 200 {object} models.SeriesChapters @Failure 403 :id is not int @router /:id [put]

func (*SeriesChaptersController) URLMapping

func (c *SeriesChaptersController) URLMapping()

URLMapping ...

type SeriesController

type SeriesController struct {
	beego.Controller
}

SeriesController operations for Series

func (*SeriesController) Delete

func (c *SeriesController) Delete()

Delete ... @Title Delete @Description delete the Series @Param id path string true "The id you want to delete" @Success 200 {string} delete success! @Failure 403 id is empty @router /:id [delete]

func (*SeriesController) GetAll

func (c *SeriesController) GetAll()

GetAll ... @Title Get All @Description get Series @Param query query string false "Filter. e.g. col1:v1,col2:v2 ..." @Param fields query string false "Fields returned. e.g. col1,col2 ..." @Param sortby query string false "Sorted-by fields. e.g. col1,col2 ..." @Param order query string false "Order corresponding to each sortby field, if single value, apply to all sortby fields. e.g. desc,asc ..." @Param limit query string false "Limit the size of result set. Must be an integer" @Param offset query string false "Start position of result set. Must be an integer" @Success 200 {object} models.Series @Failure 403 @router / [get]

func (*SeriesController) GetOne

func (c *SeriesController) GetOne()

GetOne ... @Title Get One @Description get Series by id @Param id path string true "The key for staticblock" @Success 200 {object} models.Series @Failure 403 :id is empty @router /:id [get]

func (*SeriesController) Post

func (c *SeriesController) Post()

Post ... @Title Create @Description create Series_add @Param body body models.Series true "body for Series_add content" @Success 201 {object} models.Series @Failure 403 body is empty @router / [post]

func (*SeriesController) Put

func (c *SeriesController) Put()

Put ... @Title Put @Description update the Series @Param id path string true "The id you want to update" @Param body body models.Series true "body for Series content" @Success 200 {object} models.Series @Failure 403 :id is not int @router /:id [put]

func (*SeriesController) URLMapping

func (c *SeriesController) URLMapping()

URLMapping ...

type SeriesForm

type SeriesForm struct {
	Name        string `form:"name, text"`
	Description string `form:"description, text"`
	CoverImage  string `form:"cover, file"`
	TypeName    string `form:"typename, text"`
	TypeDemonym string `form:"typedemonym, text"`
	Status      string `form:"status, text"`
	Tags        string `form:"tags, text"`
	Authors     string `form:"authors, text"`
	Artist      string `form:"artists, text"`
	Mature      bool   `form:"mature, checkbox"`
}

type SeriesStatusController

type SeriesStatusController struct {
	BaseController
}

SeriesStatusController operations for SeriesStatus

func (*SeriesStatusController) Delete

func (c *SeriesStatusController) Delete()

Delete ... @Title Delete @Description delete the SeriesStatus @Param id path string true "The id you want to delete" @Success 200 {string} delete success! @Failure 403 id is empty @router /:id [delete]

func (*SeriesStatusController) GetAll

func (c *SeriesStatusController) GetAll()

GetAll ... @Title Get All @Description get SeriesStatus @Param query query string false "Filter. e.g. col1:v1,col2:v2 ..." @Param fields query string false "Fields returned. e.g. col1,col2 ..." @Param sortby query string false "Sorted-by fields. e.g. col1,col2 ..." @Param order query string false "Order corresponding to each sortby field, if single value, apply to all sortby fields. e.g. desc,asc ..." @Param limit query string false "Limit the size of result set. Must be an integer" @Param offset query string false "Start position of result set. Must be an integer" @Success 200 {object} models.SeriesStatus @Failure 403 @router / [get]

func (*SeriesStatusController) GetOne

func (c *SeriesStatusController) GetOne()

GetOne ... @Title Get One @Description get SeriesStatus by id @Param id path string true "The key for staticblock" @Success 200 {object} models.SeriesStatus @Failure 403 :id is empty @router /:id [get]

func (*SeriesStatusController) Post

func (c *SeriesStatusController) Post()

Post ... @Title Post @Description create SeriesStatus @Param body body models.SeriesStatus true "body for SeriesStatus content" @Success 201 {int} models.SeriesStatus @Failure 403 body is empty @router / [post]

func (*SeriesStatusController) Put

func (c *SeriesStatusController) Put()

Put ... @Title Put @Description update the SeriesStatus @Param id path string true "The id you want to update" @Param body body models.SeriesStatus true "body for SeriesStatus content" @Success 200 {object} models.SeriesStatus @Failure 403 :id is not int @router /:id [put]

func (*SeriesStatusController) URLMapping

func (c *SeriesStatusController) URLMapping()

URLMapping ...

type Series_user_ratingsController

type Series_user_ratingsController struct {
	beego.Controller
}

Series_user_ratingsController operations for Series_user_ratings

func (*Series_user_ratingsController) GetOne

func (c *Series_user_ratingsController) GetOne()

GetOne ... @Title Get One @Description get Series_user_ratings by id @Param id path string true "The key for staticblock" @Success 200 {object} models.Series_user_ratings @Failure 403 :id is empty @router /:id [get]

func (*Series_user_ratingsController) Post

Post ... @Title Post @Description create Series_user_ratings @Param body body models.Series_user_ratings true "body for Series_user_ratings content" @Success 201 {int} models.Series_user_ratings @Failure 403 body is empty @router / [post]

func (*Series_user_ratingsController) URLMapping

func (c *Series_user_ratingsController) URLMapping()

URLMapping ...

type StatusesController

type StatusesController struct {
	beego.Controller
}

StatusesController operations for Statuses

func (*StatusesController) GetAll

func (c *StatusesController) GetAll()

GetAll ... @Title Get All @Description get Statuses @Success 200 {object} []models.Statuses @Failure 403 @router / [get]

func (*StatusesController) URLMapping

func (c *StatusesController) URLMapping()

URLMapping ...

type TagsController

type TagsController struct {
	beego.Controller
}

TagsController operations for Tags

func (*TagsController) GetAll

func (c *TagsController) GetAll()

GetAll ... @Title Get All @Description get Tags @Param query query string false "Filter. e.g. col1:v1,col2:v2 ..." @Param fields query string false "Fields returned. e.g. col1,col2 ..." @Param sortby query string false "Sorted-by fields. e.g. col1,col2 ..." @Param order query string false "Order corresponding to each sortby field, if single value, apply to all sortby fields. e.g. desc,asc ..." @Param limit query string false "Limit the size of result set. Must be an integer" @Param offset query string false "Start position of result set. Must be an integer" @Success 200 {object} models.Tags @Failure 403 @router / [get]

func (*TagsController) URLMapping

func (c *TagsController) URLMapping()

URLMapping ...

type UploadForm

type UploadForm struct {
	Name                  string `form:"name, text"`
	Title                 string `form:"title, text"`
	ChapterNumberAbsolute string `form:"absolute, text`
	ChapterNumberVolume   string `form:"chapter, text"`
	VolumeNumber          string `form:"volume, text"`
	ChapterLanguage       string `form:"languages, text"`
	ReleaseDelay          int    `form:"delay, number"`
	Groups                string `form:"groups, text"`
}

type UsersController

type UsersController struct {
	BaseController
}

UsersController operations for Users

func (*UsersController) Delete

func (c *UsersController) Delete()

Delete ... @Title Delete @Description delete the Users @Param id path string true "The id you want to delete" @Success 200 {string} delete success! @Failure 403 id is empty @router /:id [delete]

func (*UsersController) Put

func (c *UsersController) Put()

Put ... @Title Put @Description update the Users @Param id path string true "The id you want to update" @Param body body models.Users true "body for Users content" @Success 200 {object} models.Users @Failure 403 :id is not int @router /:id [put]

func (*UsersController) URLMapping

func (c *UsersController) URLMapping()

URLMapping ...

Jump to

Keyboard shortcuts

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