import { timestampToTime } from '@/utils/dateUtil';

export const columns = [
  {
    title: 'ID',
    key: 'id',
    width: 50,
    // sortOrder: 'descend',
    // sorter: 'default',
  },
  {
    title: '玩家ID',
    key: 'player_id',
    width: 60,
  },
  {
    title: '玩家昵称',
    key: 'nick_name',
    width: 80,
  },
  {
    title: '服务器',
    key: 'server_name',
    width: 90,
  },
  {
    title: '消息频道',
    key: 'channel_name',
    width: 80,
  },
  {
    title: '消息内容',
    key: 'content',
    width: 300,
  },
  {
    title: '消息发送时间',
    key: 'create_time',
    render: (rows, _) => {
      return timestampToTime(rows.create_time / 1000);
    },
    width: 120,
    // sortOrder: false,
    // sorter: 'default',
  },
];
