Documentation
¶
Overview ¶
Package app This app
Index ¶
- func AutoMigrate() error
- func Mysql() (db *gorm.DB, err error)
- func Sqlite3() (db *gorm.DB, err error)
- type ConstructionDevelopment
- func (cd *ConstructionDevelopment) AutoMigrate() error
- func (cd *ConstructionDevelopment) CreateViewIPLog(c *gin.Context)
- func (cd *ConstructionDevelopment) CreateVoteData(c *gin.Context)
- func (cd *ConstructionDevelopment) DeleteVoteData(c *gin.Context)
- func (cd *ConstructionDevelopment) ExamineVoteData(c *gin.Context)
- func (cd *ConstructionDevelopment) ExportCSV(c *gin.Context)
- func (cd *ConstructionDevelopment) GetVoteData(c *gin.Context)
- func (cd *ConstructionDevelopment) GetVoteDataAll(c *gin.Context)
- func (cd *ConstructionDevelopment) GetVoteDataAllStatus(c *gin.Context)
- func (cd *ConstructionDevelopment) Route(r *gin.RouterGroup)
- func (cd *ConstructionDevelopment) UpdatesVoteData(c *gin.Context)
- func (cd *ConstructionDevelopment) VoteCont(c *gin.Context)
- type ConstructionDevelopmentH5Vote
- type ConstructionDevelopmentH5VoteData
- type ConstructionDevelopmentH5VoteDataPost
- type ConstructionDevelopmentH5VoteLog
- type ConstructionDevelopmentH5VoteViewIPLog
- type ConstructionDevelopmentH5VoteViewUserLog
- type Export
- type GacmotorVoiceHeart
- type GacmotorVoiceHeartContent
- type GacmotorVoiceHeartContentPOST
- type MugedaForm
- type MugedaFormContent
- type MugedaFormContentDB
- type MugedaFormContentPOST
- type OauthWechatH5
- func (uw *OauthWechatH5) CallBack(c *gin.Context)
- func (uw *OauthWechatH5) GetWeChat() (wx *wechat.Wechat)
- func (uw *OauthWechatH5) MiddleWare(c *gin.Context)
- func (uw *OauthWechatH5) OauthURL(c *gin.Context)
- func (uw *OauthWechatH5) RandomCode(n int) string
- func (uw *OauthWechatH5) Route(r *gin.RouterGroup)
- func (uw *OauthWechatH5) UseCodeToToken(c *gin.Context)
- type XlServiceOrder
- type XlUserWalletBill
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConstructionDevelopment ¶
type ConstructionDevelopment struct {
OauthWechatH5 *OauthWechatH5
}
ConstructionDevelopment struct
func (*ConstructionDevelopment) AutoMigrate ¶
func (cd *ConstructionDevelopment) AutoMigrate() error
AutoMigrate sql...
func (*ConstructionDevelopment) CreateViewIPLog ¶
func (cd *ConstructionDevelopment) CreateViewIPLog(c *gin.Context)
CreateViewIPLog 日志
func (*ConstructionDevelopment) CreateVoteData ¶
func (cd *ConstructionDevelopment) CreateVoteData(c *gin.Context)
CreateVoteData 参与投票 post ConstructionDevelopmentH5VoteDataPost
func (*ConstructionDevelopment) DeleteVoteData ¶
func (cd *ConstructionDevelopment) DeleteVoteData(c *gin.Context)
DeleteVoteData 删除
func (*ConstructionDevelopment) ExamineVoteData ¶
func (cd *ConstructionDevelopment) ExamineVoteData(c *gin.Context)
ExamineVoteData 变更审核状态
func (*ConstructionDevelopment) ExportCSV ¶
func (cd *ConstructionDevelopment) ExportCSV(c *gin.Context)
ExportCSV 到处
func (*ConstructionDevelopment) GetVoteData ¶
func (cd *ConstructionDevelopment) GetVoteData(c *gin.Context)
GetVoteData 获取自己的投票信息/获取到可以进行更新操作
func (*ConstructionDevelopment) GetVoteDataAll ¶
func (cd *ConstructionDevelopment) GetVoteDataAll(c *gin.Context)
GetVoteDataAll 获取自己的投票信息/获取到可以进行更新操作
func (*ConstructionDevelopment) GetVoteDataAllStatus ¶
func (cd *ConstructionDevelopment) GetVoteDataAllStatus(c *gin.Context)
GetVoteDataAllStatus 获取可以投票的列表
func (*ConstructionDevelopment) Route ¶
func (cd *ConstructionDevelopment) Route(r *gin.RouterGroup)
Route ...
func (*ConstructionDevelopment) UpdatesVoteData ¶
func (cd *ConstructionDevelopment) UpdatesVoteData(c *gin.Context)
UpdatesVoteData 更新个信息 post ConstructionDevelopmentH5VoteDataPost
func (*ConstructionDevelopment) VoteCont ¶
func (cd *ConstructionDevelopment) VoteCont(c *gin.Context)
VoteCont 进行投票 更新投票信息
type ConstructionDevelopmentH5Vote ¶
type ConstructionDevelopmentH5Vote struct { gorm.Model UUID string // 活动UUID Name string // 活动名称 PageView int // 点击量 UniqueVisitor int // 独立访客 InternetProtocol int // IP数 可读取 ConstructionDevelopmentH5VoteViewIPLog 记录条数 VoteCont int // 总投票数 }
ConstructionDevelopmentH5Vote 建发投票
type ConstructionDevelopmentH5VoteData ¶
type ConstructionDevelopmentH5VoteData struct { gorm.Model VoteCount int `json:"vote_count"` // 票数 // UUID string `json:"uuid"` OpenID string `json:"open_id"` ConstructionDevelopmentH5VoteUUID string `json:"construction_development_h5_vote_uuid"` // uuid Status bool `json:"status"` // 是否可以被投票 Number int `json:"number"` // 编号 Show string `json:"show"` // show YES NO ConstructionDevelopmentH5VoteDataPost }
ConstructionDevelopmentH5VoteData 建发投票
type ConstructionDevelopmentH5VoteDataPost ¶
type ConstructionDevelopmentH5VoteDataPost struct { Name string `json:"name"` // 姓名 Phone string `json:"phone"` // 手机 City string `json:"city"` // 城市 Community string `json:"community"` // 小区 UnitNo string `json:"unit_no"` // 单元号 Address string `json:"address"` // 地址 DishName string `json:"dish_name"` // 菜名 CompleteImage string `json:"complete_image"` // 主图 ProcessImages string `json:"process_images"` // 逗号分隔符 }
ConstructionDevelopmentH5VoteDataPost data
type ConstructionDevelopmentH5VoteLog ¶
type ConstructionDevelopmentH5VoteLog struct { gorm.Model ConstructionDevelopmentH5VoteDataID uint `json:"construction_development_h5_vote_data_id"` // 被投票的人id ConstructionDevelopmentH5VoteUUID string `json:"construction_development_h5_vote_uuid"` // uuid FromOpenID string `json:"from_open_id"` // id FromNickName string `json:"from_nick_name"` // 昵称 IP string `json:"IP"` // IP }
ConstructionDevelopmentH5VoteLog 投票日志
type ConstructionDevelopmentH5VoteViewIPLog ¶
type ConstructionDevelopmentH5VoteViewIPLog struct { gorm.Model ConstructionDevelopmentH5VoteUUID string `json:"construction_development_h5_vote_uuid"` // uuid IP string // ip地址记录 }
ConstructionDevelopmentH5VoteViewIPLog 建发投票
type ConstructionDevelopmentH5VoteViewUserLog ¶
type ConstructionDevelopmentH5VoteViewUserLog struct { gorm.Model ConstructionDevelopmentH5VoteUUID string `json:"construction_development_h5_vote_uuid"` // uuid UserUUID string `json:"user_uuid"` // openid 日志 }
ConstructionDevelopmentH5VoteViewUserLog 建发投票
type GacmotorVoiceHeart ¶
type GacmotorVoiceHeart struct { }
GacmotorVoiceHeart 木疙瘩表单内容
func (*GacmotorVoiceHeart) Create ¶
func (mfc *GacmotorVoiceHeart) Create(c *gin.Context)
Create content
func (*GacmotorVoiceHeart) ExportCSV ¶
func (mfc *GacmotorVoiceHeart) ExportCSV(c *gin.Context)
ExportCSV 删除
func (*GacmotorVoiceHeart) Route ¶
func (mfc *GacmotorVoiceHeart) Route(r *gin.RouterGroup)
Route ...
type GacmotorVoiceHeartContent ¶
type GacmotorVoiceHeartContent struct { gorm.Model GacmotorVoiceHeartContentPOST }
GacmotorVoiceHeartContent 木疙瘩表单内容
type GacmotorVoiceHeartContentPOST ¶
type GacmotorVoiceHeartContentPOST struct { GacmotorVoiceHeartID string `json:"gacmotor_voice_heart_id"` // 本次活动ID fa857b22-e92e-52ce-b428-8c2ed217a6ea Branch string `json:"branch"` // 部门 Shape string `json:"shape"` // 形式 Name string `json:"name"` // 姓名 JobCode string `json:"job_code"` // 工号 Phone string `json:"phone"` // 手机 Mouthpiece string `json:"mouthpiece"` // 代言人 MouthpieceDesc string `json:"mouthpiece_desc"` // 代言人说明 Models string `json:"models"` // 车型 Slogan string `json:"slogan"` // 标语 Originality string `json:"originality"` // 创意说明 }
GacmotorVoiceHeartContentPOST 木疙瘩表单内容
type MugedaForm ¶
type MugedaForm struct { gorm.Model URL string `json:"url"` Name string `json:"name"` Desc string `json:"desc"` }
MugedaForm 木疙瘩表单
type MugedaFormContent ¶
type MugedaFormContent struct { }
MugedaFormContent 木疙瘩表单内容
func (*MugedaFormContent) Create ¶
func (mfc *MugedaFormContent) Create(c *gin.Context)
Create content
func (*MugedaFormContent) ExportCSV ¶
func (mfc *MugedaFormContent) ExportCSV(c *gin.Context)
ExportCSV 删除
type MugedaFormContentDB ¶
type MugedaFormContentDB struct { gorm.Model MugedaFormID uint `json:"mugeda_form_id"` // 表单ID Name string `json:"name"` // 姓名 Position string `json:"position"` // 职位 Company string `json:"company"` // 公司 Email string `json:"email"` // 电子邮件 }
MugedaFormContentDB 木疙瘩表单内容
type MugedaFormContentPOST ¶
type MugedaFormContentPOST struct { MugedaFormID uint `json:"mugeda_form_id"` // 表单ID Name string `json:"name"` // 姓名 Position string `json:"position"` // 职位 Company string `json:"company"` // 公司 Email string `json:"email"` // 电子邮件 }
MugedaFormContentPOST 木疙瘩表单内容
type OauthWechatH5 ¶
OauthWechatH5 ...
func (*OauthWechatH5) GetWeChat ¶
func (uw *OauthWechatH5) GetWeChat() (wx *wechat.Wechat)
GetWeChat 示例
func (*OauthWechatH5) MiddleWare ¶
func (uw *OauthWechatH5) MiddleWare(c *gin.Context)
MiddleWare 中间件
func (*OauthWechatH5) UseCodeToToken ¶
func (uw *OauthWechatH5) UseCodeToToken(c *gin.Context)
UseCodeToToken 使用code 换取token
type XlServiceOrder ¶
type XlServiceOrder struct { ID uint `gorm:"primary_key" json:"id"` UserID uint `json:"user_id"` // 创建ID 的用户 OrderNO string `json:"order_no" gorm:"unique;not null"` // 订单号码 TotalPrice int `json:"total_price"` // 订单金额 PayType string `json:"pay_type"` // 支付方式 ServiceUserID uint `json:"service_user_id"` // 服务者用户ID ServiceGoodsID uint `json:"service_goods_id"` // 购买商品ID ServicePrice int `json:"service_price"` // 服务单价 ServicePriceUnit string `json:"service_price_unit"` // 服务单价的单位 ServiceFee int `json:"service_fee"` // 非服务费【手续费】 HeadImg string `json:"head_img"` // 订单缩略图 Body string `json:"body"` // 订单名称 Desc string `json:"desc"` // 订单描述 Status string `json:"status"` // 待支付,已支付【待接单】,已确认【已接单】,已服务【服务者修改】,已完成【需求者确认】,退款中【需求者申请退款】, 已退款,交易关闭 PayAt time.Time `json:"pay_time"` // 支付时间 RefundAt time.Time `json:"refun_at"` // 退款时间 CloseAt time.Time `json:"close_at"` // 交易关闭时间 CompletedAt time.Time `json:"completed_at"` // 交易完成时间 CreatedAt time.Time `json:"CreatedAt"` // 订单创建时间 UpdatedAt time.Time `json:"UpdatedAt"` // 订单更新时间 DeletedAt *time.Time `sql:"index" json:"DeletedAt"` // 软删除 }
XlServiceOrder 服务订单
type XlUserWalletBill ¶
type XlUserWalletBill struct { // gorm.Model ID uint `gorm:"primary_key"` // id UserID uint `json:"user_id"` // user_id Type uint `json:"type"` // 1 增加 or 0 减少 Scenes uint `json:"scenes"` // 0 订单-消费/退款, 1 红包收/发, 2 提现/充值, Amount float64 `json:"amount" sql:"type:decimal(10,2);"` // amount 交易金额 【+/-】 ServiceFee float64 `json:"service_fee" sql:"type:decimal(10,2);"` // service_fee 交易手续费 PartnerTradeNo string `json:"partner_trade_no"` // 交易号 Body string `json:"body"` // 交易内容 | scenes = 0 : 购买的商品名【amount -(消费)/+(退款) | scenes = 1 红包 amount +(来着某某的红包)/-(发给某某的红包) | scenes = 2 amount +(充值)/-(提现) Goods string `json:"goods"` // 商品名 scenes = 0 商品详细名称 PaymentMethod string `json:"payment_method"` // 支付方式 scenes = 0 订单支付方式/退款路径 RedPacketFlow string `json:"red_packet_flow"` // 红包流 scenes = 1 amount +(发送方)/-(接收方) RechargeWithdrawMethod string `json:"recharge_withdrawal_method"` // 充值/提现方式 scenes = 2 amount +(充值方式)/-(提现方式) ['支付宝','微信'] RechargeWithdrawFlow string `json:"recharge_withdrawal_flow"` // 充值/提现账户 scenes = 2 amount +(微信-bank_type 付款银行,支付宝/fund_bill_list 支付渠道)/-(提现到openid) Status string `json:"status"` // 交易状态 scenes = 0 [消费-待支付/已支付,退款-待退款/已退款] | scenes = 1 [发-待支付未发出/已支付并发送, 收-已收到] | scenes = 3 提现-发起提现/提现到账,充值-发起充值/充值成功 ErrCode string `json:"err_code"` // 错误代码 ErrCodeDesc string `json:"err_code_desc"` // 错误代码说明 CreateTime uint // 创建时间 scenes = 0 发起消费/退款时间 | scenes = 1 | scenes = 2 发起充值/提现时间 UpdateTime uint // 更新时间 }
XlUserWalletBill xl_user_wallet_bill