This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
otter-space-sdk/pkg/models/const.go
2024-06-03 23:55:30 +02:00

39 lines
633 B
Go

package models
type AnthroveUserID string
type AnthrovePostID string
type Rating string
type TagType string
const (
SFW Rating = "s"
NSFW Rating = "e"
Questionable Rating = "q"
Unknown Rating = "unknown"
)
const (
General TagType = "general"
Species TagType = "species"
Character TagType = "character"
Artist TagType = "artist"
Lore TagType = "lore"
Meta TagType = "meta"
Invalid TagType = "invalid"
)
func (r *Rating) Convert(e621Rating string) {
switch e621Rating {
case "e":
*r = NSFW
case "q":
*r = Questionable
case "s":
*r = SFW
default:
*r = Unknown
}
}