提交 4d1c7c4e 编写于 作者: J Jason

上级 dd41ea46
......@@ -24,7 +24,7 @@ type HeartBeatConf struct {
}
type Channel struct {
ID int `storm:"increment" json:"id"`
ID int `json:"id" storm:"increment"`
Name string `json:"name"`
Tags []string `json:"tags"`
......
......@@ -5,7 +5,7 @@ import (
)
type Link struct {
ID int `storm:"increment" json:"id"`
ID int `json:"id" storm:"increment"`
Name string `json:"name"`
Serial string `json:"serial" storm:"index"`
Addr string `json:"addr"`
......
......@@ -3,9 +3,9 @@ package types
import "time"
type Plugin struct {
ID int `storm:"increment" json:"id"`
ID int `json:"id" storm:"increment"`
Name string `json:"name"`
AppKey string `storm:"unique index" json:"app_key"`
AppKey string `json:"app_key" storm:"unique index"`
AppSecret string `json:"app_secret"`
Address string `json:"address"`
Path string `json:"path"`
......
......@@ -3,8 +3,8 @@ package types
import "time"
type User struct {
ID int `storm:"increment" json:"id"`
Username string `storm:"unique index" json:"username"`
ID int `json:"id" storm:"increment"`
Username string `json:"username" storm:"unique"`
Password string `json:"password"`
Disabled bool `json:"disabled"` //TODO 未实现
Created time.Time `json:"created"`
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册