Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Sign in
P
physical
  • Project
    • Project
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • alpha
  • physical
  • Repository

Switch branch/tag
  • physical
  • search
  • utils
  • common.py
Find file
BlameHistoryPermalink
  • 段英荣's avatar
    modify · aeefcc14
    段英荣 authored 6 years ago
    aeefcc14
common.py 409 Bytes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
#!/usr/bin/env python
# -*- coding: utf-8 -*-


class GroupSortTypes(object):
    # 热度排序
    HOT_RECOMMEND=0

    # 关注排序
    ATTENTION_RECOMMEND=1

class PickType(object):
    # 明星榜
    CELEBRITY_PICK=0

    # 帖子榜
    TOPIC_PICK=1

class TopicDocumentField(object):
    """
    帖子索引字段信息
    """
    ID="id",
    IS_ONLINE = "is_online",
    TAG_LIST = "tag_list"

Replace common.py

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.