hunk.code_window:     } else {
           const account_url = `https://${site}/api/v1/accounts/${account_id}`;
           const account_response = await got({
               method: 'get',
               url: account_url,
           });
           account_data = account_response.data;
       }
  
hunk.labels: keep keep keep keep add keep keep keep keep
hunk.after_edit:             headers: apiHeaders(site),
  
hunk.file_path: lib/routes/mastodon/utils.js
hunk.type: add
file: import got from '@/utils/got';
  import { load } from 'cheerio';
  import { parseDate } from '@/utils/parse-date';
  import timezone from '@/utils/timezone';
  
  export default async (ctx) => {
      const type = ctx.req.param('type');
      const type_dict = {
          tzgg: ['https://scit.nju.edu.cn/10916/list.htm', '通知公告'],
          kydt: ['https://scit.nju.edu.cn/11003/list.htm', '科研动态'],
      };
      const response = await got({
          method: 'get',
          url: type_dict[type][0],
      });
  
      const data = response.data;
  
      const $ = load(data);
      const list = $('li.list_item');
  
      ctx.set('data', {
          title: `科学技术处-${type_dict[type][1]}`,
          link: type_dict[type][0],
          item: list
              .map((index, item) => {
                  item = $(item);
                  return {
                      title: item.find('a').attr('title'),
                      link: 'https://scit.nju.edu.cn' + item.find('a').attr('href'),
                      pubDate: timezone(parseDate(item.find('.Article_PublishDate').first().text(), 'YYYY-MM-DD'), +8),
                  };
              })
              .get(),
      });
  };
  