package model

import "github.com/gogf/gf/v2/frame/g"

type Tag struct {
	g.Meta `orm:"table:tags"`
	Id     int64  `json:"id"   orm:"id"`
	Name   string `json:"name" orm:"name"`
	Type   int    `json:"type" orm:"type"` // 1=主题, 2=角色, 3=情节
}

type TagListIn struct {
	Page int
	Size int
	Name string
	Type int
}
type TagListOut struct {
	Total int
	List  []Tag
}

type TagAddIn struct {
	Name string
	Type int
}
type TagEditIn struct {
	Id   int64
	Name string
	Type int
}
type TagDelIn struct {
	Id int64
}

type TagCRUDOut struct {
	Success bool
}
