12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <?php
- namespace huoRebate\controller;
- use huo\controller\common\Base;
- use huo\logic\posts\PostsLogic;
- use huolib\status\CommonStatus;
- class RichText extends Base {
- protected $post_logic;
- public function __construct(PostsLogic $post_logic = null) {
- if (null === $post_logic) {
- $this->post_logic = new PostsLogic();
- } else {
- $this->post_logic = $post_logic;
- }
- }
-
- public function getDetail($post_id) {
- $_data = $this->post_logic->getDetail($post_id);
- return $this->retSucMsg(CommonStatus::NO_ERROR, $_data);
- }
- }
|