|
|
@@ -25,6 +25,12 @@ class Announcement extends Api
|
|
|
$this->success('', $announcementModel::getTypeList());
|
|
|
}
|
|
|
|
|
|
+ //获取子分类
|
|
|
+ public function getSubtype(AnnouncementType $announcementType){
|
|
|
+ $typeId = $this->request->param('type_id', 1, 'intval');
|
|
|
+ $this->success('', $announcementType::getSubTypeByPId($typeId));
|
|
|
+ }
|
|
|
+
|
|
|
//列表
|
|
|
public function list(AnnouncementModel $announcementModel, AnnouncementType $announcementType)
|
|
|
{
|