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

export const columns = [
  {
    title: 'ID',
    key: 'id',
    width: 50,
    sortOrder: 'descend',
    sorter: 'default',
  },
  {
    title: '举报者ID',
    key: 'player_id',
    width: 80,
  },
  {
    title: '举报者昵称',
    key: 'player_name',
    width: 100,
  },
  {
    title: '举报者服务器',
    key: 'server_name',
    width: 100,
  },
  {
    title: '被举报者ID',
    key: 'clan_player_id',
    width: 80,
  },
  {
    title: '被举报者昵称',
    key: 'clan_player_name',
    width: 120,
  },
  {
    title: '被举报者服务器',
    key: 'clan_server_name',
    width: 100,
  },
  {
    title: '举报消息ID',
    key: 'clan_chat_id',
    width: 150,
  },
  {
    title: '消息频道',
    key: 'clan_channel_name',
    width: 100,
  },
  {
    title: '消息内容',
    key: 'clan_content',
    width: 300,
  },
  {
    title: '消息发送时间',
    key: 'clan_time',
    render: (rows, _) => {
      return timestampToTime(rows.clan_time / 1000);
    },
    width: 120,
    sortOrder: false,
    sorter: 'default',
  },
  {
    title: '举报时间',
    key: 'create_time',
    render: (rows, _) => {
      return timestampToTime(rows.create_time / 1000);
    },
    width: 120,
    sortOrder: false,
    sorter: 'default',
  },
];

export const clanChatChannel = [
  {
    value: 0,
    label: '全部',
    name: '全部',
  },
  {
    value: 1,
    label: '系统频道',
    name: '系统频道',
  },
  {
    value: 2,
    label: '世界频道',
    name: '世界频道',
  },
  {
    value: 3,
    label: '联盟频道',
    name: '联盟频道',
  },
  {
    value: 4,
    label: '跨服频道',
    name: '跨服频道',
  },
  {
    value: 5,
    label: '组队频道',
    name: '组队频道',
  },
];
