Another article published by api

article title

ref

  1. Bold content
  2. code
  3. code bolck
class PostStruct extends StructBase
{

    protected static $config = [
        'dateCreated' => DateAttr::class,
        'description' => StringAttr::class,
        'title' => StringAttr::class,
        'categories' => [ArrayAttr::class, 'string'],
//        'enclosure' => EnclosureStruct::class,
        'link' => StringAttr::class,
        'permalink' => StringAttr::class,
        'postid' => Int32Attr::class,
//        'source' => SourceStruct::class,
        'userid' => StringAttr::class,
        'mt_allow_comments' => StringAttr::class,
        'mt_allow_pings' => StringAttr::class,
        'mt_convert_breaks' => StringAttr::class,
        'mt_text_more' => StringAttr::class,
        'mt_excerpt' => StringAttr::class,
        'mt_keywords' => StringAttr::class,
        'wp_slug' => StringAttr::class,
    ];

}
posted @ 2024-05-09 01:04  真理君的宿敌  阅读(1)  评论(0编辑  收藏  举报