|
@@ -7,7 +7,7 @@ import (
|
|
|
)
|
|
|
|
|
|
type WxSession struct {
|
|
|
- WxSessionId string `orm:"pk" description:"id"`
|
|
|
+ WxSessionId int `orm:"pk" description:"id"`
|
|
|
OpenId string `description:"openId"`
|
|
|
UnionId string `description:"unionId"`
|
|
|
AccessToken string `description:"微信token"`
|
|
@@ -15,9 +15,9 @@ type WxSession struct {
|
|
|
LastUpdateTime time.Time `description:"最后更新时间"`
|
|
|
}
|
|
|
|
|
|
-func (w *WxSession) Insert() (err error) {
|
|
|
+func (w *WxSession) Insert() (insertId int64, err error) {
|
|
|
o := orm.NewOrm()
|
|
|
- _, err = o.Insert(w)
|
|
|
+ insertId, err = o.Insert(w)
|
|
|
return
|
|
|
}
|
|
|
|