1 Star 1 Fork 0

1701 / gpa

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
user.go 923 Bytes
一键复制 编辑 原始数据 按行查看 历史
1701 提交于 2021-08-02 16:53 . 修改路径
package models
import (
"time"
"gitee.com/knowgo/gpa/examples/pratics/models/op"
)
type User struct {
ID uint64 `gpa:"pk not-null"`
Name string `gpa:"varchar(202)"`
Age int `gpa:"index(age0)"`
Gender bool `gpa:"index(age0)"`
OkaUsURL bool `gpa:"default(true)"`
Cret time.Time
// What ttt.Abc
URL string
}
type Student struct {
ID uint64 `gpa:"pk not-null"`
Name string `gpa:"varchar(50)"`
ClassID uint64
BirthDay time.Time
Address string `gpa:"varchar(200)"`
Data []byte
}
type Teacher struct {
ID int `gpa:"pk autoincr"`
Name string `gpa:"varchar(50)"`
BirthDay time.Time
Address string `gpa:"varchar(200)"`
Addr op.Addr
}
// func (Student) Foo([]byte) error {
// return nil
// }
// func (s *Student) Read(buf []byte) error {
// return nil
// }
// func (s *Student) Write() (buf []byte, err error) {
// return nil, nil
// }
Go
1
https://gitee.com/knowgo/gpa.git
git@gitee.com:knowgo/gpa.git
knowgo
gpa
gpa
v0.2.14

搜索帮助