'integer', 'account_type' => 'integer', 'belong_id' => 'integer', 'rank' => 'integer', 'status' => 'integer']; public static function list(int $belong_id, int $account_type, string $post_name) { $model = self::where('belong_id', $belong_id) ->where('account_type', $account_type); if ($post_name != '') { $model = $model->where('post_name', "like", "%$post_name%"); } return $model->orderByDesc("rank")->orderByDesc("post_id") ->select(["post_id", "post_name", "rank", "status", "create_time"]) ->get()->toArray(); } public static function options(int $belong_id, int $account_type) { return self::where('belong_id', $belong_id) ->where('account_type', $account_type) ->where("status",1) ->orderByDesc("rank")->orderByDesc("post_id") ->select(["post_id", "post_name"]) ->get()->toArray(); } }