first commit
This commit is contained in:
146
pkg/common/ConstVar.go
Normal file
146
pkg/common/ConstVar.go
Normal file
@ -0,0 +1,146 @@
|
||||
package common
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
|
||||
"github.com/anxpp/beego/logs"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
//公用
|
||||
|
||||
//API版本号
|
||||
// API_V_NUM = "1"
|
||||
|
||||
//API密钥
|
||||
// API_SECRECT = "x63363eacf804b4394a120aea240fd9a"
|
||||
|
||||
//图片域名
|
||||
|
||||
PHOTO_URL_PREV = "https://photo-app.ddegame.cn/"
|
||||
|
||||
MEDIA_URL_PREV = "https://media-qiniu-app.ddegame.cn/"
|
||||
|
||||
//====== 三方key =======
|
||||
//NETEASE_IM_APPKEY = "a0671ecde01ef03928ccfd460c62d203"
|
||||
//NETEASE_IM_SECRET = "eb88916031ca"
|
||||
|
||||
//用户认证申请状态
|
||||
USER_CERTIFY_STATUS_INIT = "1" //已提交
|
||||
USER_CERTIFY_STATUS_SUCCESS = "2" //成功
|
||||
USER_CERTIFY_STATUS_INIT_FAIL = "3" //初始化失败
|
||||
USER_CERTIFY_STATUS_AUTH_FAIL = "4" //认证失败
|
||||
USER_CERTIFY_STATUS_REFUSE = "5" //拒绝
|
||||
|
||||
// 模块和页面ID
|
||||
|
||||
//用户管理
|
||||
MODULE_ID_USER_MANAGE = "1"
|
||||
//基础数据
|
||||
MODULE_ID_BASE_DATA = "4"
|
||||
//财务管理
|
||||
MODULE_ID_FIN_MANAGE = "7"
|
||||
//数据报表
|
||||
MODULE_ID_DATA_REPORT = "14"
|
||||
//聊天室管理
|
||||
MODULE_ID_ROOM_MANAGE = "20"
|
||||
//付款管理
|
||||
MODULE_ID_PAY_MANAGE = "100"
|
||||
//抽奖管理
|
||||
MODULE_ID_LUCK_MANAGE = "200"
|
||||
//技能管理
|
||||
MODULE_ID_SKILL_MANAGE = "300"
|
||||
//技能订单管理
|
||||
MODULE_ID_SKILL_ORDER_MANAGE = "400"
|
||||
//技能订单列表
|
||||
PAGE_ID_FIN_SKILL_ORDER_LIST = "401"
|
||||
|
||||
//用户列表
|
||||
PAGE_ID_USER_LIST = "2"
|
||||
//用户认证列表
|
||||
PAGE_ID_USER_AUTH_LIST = "3"
|
||||
//礼物列表
|
||||
PAGE_ID_GIFT_LIST = "5"
|
||||
//首页分类列表
|
||||
PAGE_ID_HOME_TAB_LIST = "6"
|
||||
//充值列表
|
||||
PAGE_ID_FIN_RECHARGE_LIST = "8"
|
||||
//提现列表
|
||||
PAGE_ID_FIN_WITHDRAW_LIST = "9"
|
||||
//兑换列表
|
||||
PAGE_ID_FIN_EXCHANGE_LIST = "10"
|
||||
//表情列表
|
||||
PAGE_ID_FIN_EMOJI_ORDER_LIST = "11"
|
||||
//守护订单列表
|
||||
PAGE_ID_FIN_GUARD_ORDER_LIST = "12"
|
||||
//打赏列表
|
||||
PAGE_ID_FIN_PRESENT_GIFT_LIST = "13"
|
||||
|
||||
//日报表
|
||||
PAGE_ID_DAY_REPORT = "15"
|
||||
//厅日流水报表
|
||||
PAGE_ID_DAY_ROOM_SALE_REPORT = "142"
|
||||
//实时厅流水报表
|
||||
PAGE_ID_TODAY_ROOM_SALE_RANK = "143"
|
||||
//厅费用排行
|
||||
PAGE_ID_TODAY_ROOM_MARKET_FEE_RANK = "144"
|
||||
|
||||
//聊天室列表
|
||||
PAGE_ID_CHATROOM_LIST = "21"
|
||||
//房主列表
|
||||
PAGE_ID_CHATROOM_OWNER_LIST = "22"
|
||||
//打赏列表
|
||||
PAGE_ID_FIN_OPERATION_DIAMOND_LIST = "24"
|
||||
//
|
||||
PAGE_ID_FILTER_USER_NO = "25"
|
||||
//付款单列表
|
||||
PAGE_ID_PAY_ORDER_LIST = "101"
|
||||
//客户列表
|
||||
PAGE_ID_PAY_CUSTOMER_LIST = "102"
|
||||
|
||||
//砸蛋列表
|
||||
PAGE_ID_HIT_EGG_LIST = "201"
|
||||
//方案列表
|
||||
PAGE_ID_SOLUTION_LIST_LIST = "202"
|
||||
//权益列表
|
||||
PAGE_ID_QUANYI_LIST_LIST = "203"
|
||||
//用户砸蛋汇总
|
||||
PAGE_ID_USER_HITEGG_SUMMARY = "204"
|
||||
|
||||
//技能申请列表
|
||||
PAGE_ID_SKILL_APPLY_LIST_LIST = "301"
|
||||
|
||||
//技能列表
|
||||
PAGE_ID_SKILL_LIST = "302"
|
||||
|
||||
//卖家列表
|
||||
PAGE_ID_SELLER_LIST = "303"
|
||||
|
||||
//SKU列表
|
||||
PAGE_ID_SKILL_SKU_LIST = "304"
|
||||
|
||||
//技能修改申请列表
|
||||
PAGE_ID_SKILL_EDIT_LIST = "305"
|
||||
|
||||
//技能价格列表
|
||||
PAGE_ID_SKILL_PRICE_LIST = "306"
|
||||
//技能订单列表
|
||||
PAGE_ID_SKILL_ORDER_LIST = "401"
|
||||
|
||||
// 代理订单类型 后台充值
|
||||
AGENT_DIAMOND_ORDER_TYPE_ADMIN_RECHARGE = "1"
|
||||
// 代理订单类型 上级转账
|
||||
AGENT_DIAMOND_ORDER_TYPE_UPER_TRANSFER = "2"
|
||||
|
||||
// 文本反垃圾类型 - 昵称检测
|
||||
RISK_TYPE_TEXT_NICKNAME = "nickname_detection"
|
||||
RISK_TYPE_TEXT_COMMENT = "comment_detection" //评论检测
|
||||
)
|
||||
|
||||
func LogJson(v interface{}) {
|
||||
b, _ := json.Marshal(v)
|
||||
logs.Info(string(b))
|
||||
}
|
||||
|
||||
const photoDomainUrl = "https://ddphoto.youkeya.cn"
|
||||
Reference in New Issue
Block a user