根据传递过来的id从分类表中查询标题 @param id 主键id @return title 返回查询的标题名称
(id interface{})
| 38 | //@param id 主键id |
| 39 | //@return title 返回查询的标题名称 |
| 40 | func (this *Category) GetTitleById(id interface{}) (title string) { |
| 41 | orm.NewOrm().QueryTable(GetTableCategory()).Filter("Id", id).One(this, "Title") |
| 42 | return this.Title |
| 43 | } |
| 44 | |
| 45 | //根据id删除分类 |
| 46 | //@param id 需要删除的分类id |
nothing calls this directly
no test coverage detected