Error code standardization

This commit is contained in:
skiffer-git
2023-01-17 18:02:57 +08:00
parent f538a86e10
commit 9067172424
2 changed files with 14 additions and 13 deletions
+1
View File
@@ -16,6 +16,7 @@ type GroupModelInterface interface {
Find(ctx context.Context, groupIDs []string) (groups []*Group, err error)
Take(ctx context.Context, groupID string) (group *Group, err error)
}
type Group struct {
GroupID string `gorm:"column:group_id;primary_key;size:64" json:"groupID" binding:"required"`
GroupName string `gorm:"column:name;size:255" json:"groupName"`