diff --git a/src/dao/alipay_user_info_dao.go b/src/dao/alipay_user_info_dao.go new file mode 100644 index 0000000..e8eb227 --- /dev/null +++ b/src/dao/alipay_user_info_dao.go @@ -0,0 +1,5 @@ +package dao + +type AlipayUserInfoDao interface { + //TODO:: You can add specific method definitions here +} diff --git a/src/implement/alipay_user_info_implement.go b/src/implement/alipay_user_info_implement.go new file mode 100644 index 0000000..c301179 --- /dev/null +++ b/src/implement/alipay_user_info_implement.go @@ -0,0 +1,14 @@ +package implement + +import ( + "code.fnuoos.com/EggPlanet/egg_models.git/src/dao" + "xorm.io/xorm" +) + +func NewAlipayUserInfoDb(engine *xorm.Engine) dao.AlipayUserInfoDao { + return &AlipayUserInfoDb{Db: engine} +} + +type AlipayUserInfoDb struct { + Db *xorm.Engine +} diff --git a/src/model/alipay_user_info.go b/src/model/alipay_user_info.go new file mode 100644 index 0000000..c039eac --- /dev/null +++ b/src/model/alipay_user_info.go @@ -0,0 +1,12 @@ +package model + +type AlipayUserInfo struct { + Id int `json:"id" xorm:"not null pk autoincr INT(11)"` + Uid int64 `json:"uid" xorm:"not null comment('用户id') BIGINT(20)"` + UserId string `json:"user_id" xorm:"not null default '' comment('支付宝用户id') CHAR(100)"` + OpenId string `json:"open_id" xorm:"not null default '' comment('支付宝用户open_id') CHAR(100)"` + AppId string `json:"app_id" xorm:"not null default '' comment('支付宝商户应用appid') CHAR(50)"` + Ext string `json:"ext" xorm:"not null comment('拓展字段') TEXT"` + CreateAt string `json:"create_at" xorm:"not null default 'CURRENT_TIMESTAMP' DATETIME"` + UpdateAt string `json:"update_at" xorm:"not null default 'CURRENT_TIMESTAMP' DATETIME"` +}