This commit is contained in:
2024-12-25 11:59:33 +08:00
parent a5fa833937
commit 36dd01056e
35 changed files with 2328 additions and 244 deletions

View File

@@ -39,3 +39,14 @@ type LawsuitData struct {
type LawsuitResponse struct {
Data LawsuitData `json:"data"`
}
type LawsuitPersonResponse struct {
Success bool `json:"success"`
ResultCode string `json:"resultCode"`
Message string `json:"message"`
Data string `json:"data"`
}
type LawsuitPersonData struct {
Msg string `json:"msg"`
Data string `json:"data"`
}

View File

@@ -14,6 +14,7 @@ type PayOrder struct {
Product *Product `gorm:"foreignKey:ProductID"` // 关联的Product
Platform string `gorm:"type:varchar(20)" json:"platform"` //支付时的平套
PaymentMethod PaymentMethod `gorm:"type:varchar(20)" json:"payment_method"` // 支付平台
Promotion string `gorm:"type:varchar(20)" json:"promotion"`
}
// 支付订单
@@ -46,4 +47,5 @@ const (
PlatformMPWEIXIN = "mp-weixin"
PlatformMPH5 = "mp-h5"
PlatformH5 = "h5"
PlatformTYDATA = "tydata"
)

View File

@@ -33,8 +33,11 @@ var SingleQueryProdIDs = map[string]string{
}
type MerryResponse struct {
Msg string `json:"msg"`
Code int `json:"code"`
Data string `json:"data"`
Success bool `json:"success"`
Code string `json:"code"`
Data []DataEntry `json:"data"`
Message string `json:"message"`
}
type DataEntry struct {
MaritalStatus string `json:"maritalStatus"`
}

View File

@@ -9,10 +9,11 @@ import (
// 全能查用户 结构体 User
type User struct {
BaseModel
Userid uint `json:"userid" form:"userid" gorm:"column:userid;comment:" binding:"required"` //userid
Phone string `json:"phone" form:"phone" gorm:"column:phone;"`
Disable *bool `json:"disable" form:"disable" gorm:"default:false;column:disable;comment:;" binding:"required"` //禁用
Inside bool `json:"inside" form:"inside" gorm:"column:inside;type:tinyint(1);comment:;default:0"`
Userid uint `json:"userid" form:"userid" gorm:"column:userid;comment:" binding:"required"` //userid
Phone string `json:"phone" form:"phone" gorm:"column:phone;"`
Disable *bool `json:"disable" form:"disable" gorm:"default:false;column:disable;comment:;" binding:"required"` //禁用
Inside bool `json:"inside" form:"inside" gorm:"column:inside;type:tinyint(1);comment:;default:0"`
Promotion string `json:"promotion" form:"promotion" gorm:"type:varchar(20)"`
}
// TableName 全能查用户 User自定义表名 user
@@ -26,6 +27,7 @@ const (
AUTHTYPE_WECHAT_H5 AuthType = "wechat_h5"
AUTHTYPE_WECHAT_MP AuthType = "wechat_mp"
AUTHTYPE_PHONE AuthType = "phone"
AUTHTYPE_TYDATA AuthType = "tydata"
)
type AuthIdentifier struct {
@@ -36,7 +38,7 @@ type AuthIdentifier struct {
type Authentication struct {
ID uint `gorm:"primaryKey"`
UserID uint `gorm:"not null"`
AuthType AuthType `gorm:"type:ENUM('wechat_h5', 'wechat_mp', 'phone');not null"`
AuthType AuthType `gorm:"type:ENUM('wechat_h5', 'wechat_mp', 'phone','tydata');not null"`
OpenID string `json:"openid"`
UnionID string `json:"unionid"`
Phone string `json:"phone"`