彻底删除该list接口

This commit is contained in:
2023-01-27 16:13:45 +08:00
parent 275eeebd1d
commit f200712d9f
3 changed files with 0 additions and 45 deletions

View File

@ -100,20 +100,6 @@ class ProgramAppendConstructController extends BaseController
];
})->toArray();
}
public function broadcast_list(Request $request) {
$query = ProgramAppends::query()->groupBy("name")
->where("broadcast", "=", 1)
->select("name")->selectRaw("max(id) as id");
return $query->get()->map(function ($item) {
return [
"text" => $item["name"],
"value" => $item["id"],
"alias" => implode("", \pinyin($item["name"], PINYIN_NO_TONE|PINYIN_KEEP_ENGLISH)),
"abbr" => \pinyin_abbr($item["name"]),
];
});
}
// endregion
private function fill_model(Request $request, ?ProgramAppends $append = null): ProgramAppends