♻️ Moved account-based post to publisher-based post

This commit is contained in:
2024-10-31 22:41:32 +08:00
parent d889d22d11
commit 001c9a8140
39 changed files with 559 additions and 924 deletions

View File

@@ -1,9 +1,9 @@
package models
import "git.solsynth.dev/hydrogen/dealer/pkg/hyper"
import "git.solsynth.dev/hypernet/nexus/pkg/nex/cruda"
type Tag struct {
hyper.BaseModel
cruda.BaseModel
Alias string `json:"alias" gorm:"uniqueIndex" validate:"lowercase"`
Name string `json:"name"`
@@ -12,7 +12,7 @@ type Tag struct {
}
type Category struct {
hyper.BaseModel
cruda.BaseModel
Alias string `json:"alias" gorm:"uniqueIndex" validate:"lowercase,alphanum"`
Name string `json:"name"`