(cate helper.ConfigCate)
| 316 | } |
| 317 | |
| 318 | func (this *Config) GetByCate(cate helper.ConfigCate) (configs []Config) { |
| 319 | orm.NewOrm().QueryTable(GetTableConfig()).Filter("Category", cate).All(&configs) |
| 320 | return |
| 321 | } |
| 322 | |
| 323 | //根据key更新配置 |
| 324 | //@param cate 配置分类 |
no test coverage detected