imdb

package
v3.15.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2018 License: Apache-2.0 Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateObjectTag

func CreateObjectTag(c *gin.Context)

func CreateTag

func CreateTag(c *gin.Context)

func CreateValueModel

func CreateValueModel(c *gin.Context)

func DeleteObjctTag

func DeleteObjctTag(c *gin.Context)

func DeleteTag

func DeleteTag(c *gin.Context)

func DeleteValueModel

func DeleteValueModel(c *gin.Context)

func GetObjectTag

func GetObjectTag(c *gin.Context)

func GetStrValue

func GetStrValue(c *gin.Context)

func GetTag

func GetTag(c *gin.Context)

func GetTagType

func GetTagType(c *gin.Context)

func GetValueModel

func GetValueModel(c *gin.Context)

func ObjectTagList

func ObjectTagList(c *gin.Context)

func Routes

func Routes(r *gin.Engine)

func TagLists

func TagLists(c *gin.Context)

func UpdateObjectTag

func UpdateObjectTag(c *gin.Context)

func UpdateStrValue

func UpdateStrValue(c *gin.Context)

func UpdateTag

func UpdateTag(c *gin.Context)

func UpdateValueModel

func UpdateValueModel(c *gin.Context)

func ValueModels

func ValueModels(c *gin.Context)

Types

type CreateObjectChildHelp

type CreateObjectChildHelp struct {
	TagId            int
	ObjectTagId      int
	ResourceObjectId int
}

type CreateObjectTagBase

type CreateObjectTagBase struct {
	TagId            int `json:"tag_id" form:"tag_id" binding:"required"`
	ResourceObjectId int `json:"resource_object_id" form:"resource_object_id" binding:"required"`
}

type CreateObjectTagInput

type CreateObjectTagInput struct {
	CreateObjectTagBase
	ValueInt  *int    `json:"value_int" form:"value_int"`
	ValueText *string `json:"value_text" form:"value_text"`
}

func (*CreateObjectTagInput) Check

func (self *CreateObjectTagInput) Check(tagType string) (err error)

type CreateTagInput

type CreateTagInput struct {
	Name        string `json:"name" form:"name" binding:"required"`
	TagTypeId   int    `json:"tag_type_id" form:"tag_type_id" binding:"required"`
	Description string `json:"description" from:"description"`
}

type CreateValueModelInput

type CreateValueModelInput struct {
	Value string `json:"value" form:"value" binding:"required"`
}

type DeleteObjctTagInput

type DeleteObjctTagInput struct {
	// test flag
	Test bool `json:"test" form:"test"`
}

type DeleteValueModelInput

type DeleteValueModelInput struct {
	ID []int `json:"value_model_ids" form:"value_model_ids" binding:"required"`
	// test only
	Test bool `json:"test"`
}

type GetTagInput

type GetTagInput struct {
	ID int `json:"id" form:"id" binding:"required"`
}

type GetTagListsInput

type GetTagListsInput struct {
	h.FilterBy
	h.SortByHelpr
	mypg.Pagging
}

type GetValueModelInput

type GetValueModelInput struct {
	h.FilterBy
	mypg.Pagging
}

type ObjectTagsInput

type ObjectTagsInput struct {
	mypg.Pagging
	h.SortByHelpr
}

type UpdateObjectTagInput

type UpdateObjectTagInput struct {
	ValueInt  *int    `json:"value_int" form:"value_int"`
	ValueText *string `json:"value_text" form:"value_text"`
}

func (*UpdateObjectTagInput) Check

func (self *UpdateObjectTagInput) Check(tagType string) (err error)

type UpdateStrValueInput

type UpdateStrValueInput struct {
	Value string `json:"value" form:"value" binding:"required"`
}

type UpdateTagInput

type UpdateTagInput struct {
	ID          int    `json:"id" form:"id" binding:"required"`
	Description string `json:"description" from:"description"`
}

type UpdateValueModelInput

type UpdateValueModelInput struct {
	ID    int    `json:"id" form:"id" binding:"required"`
	Value string `json:"value" form:"value" binding:"required"`
}

Jump to

Keyboard shortcuts

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