123456789101112131415161718192021222324 |
- package models
- import (
- "rdluck_tools/orm"
- "time"
- )
- type CygxConfig struct {
- ConfigId int `json:"-" orm:"column(config_id);pk"`
- ConfigCode string `json:"-"`
- ConfigValue string
- Remark string `json:"-"`
- CreateTime time.Time `json:"-"`
- }
- func GetConfigByCode(configCode string) (item *CygxConfig, err error) {
- sql := `SELECT * FROM cygx_config WHERE config_code=? `
- err = orm.NewOrm().Raw(sql, configCode).QueryRow(&item)
- return
- }
- type ConfigResp struct {
- Item *CygxConfig
- }
|