# @Author    : Rocky
# @File      : WeChatEnum.py
# @Time      : 2024/11/27 17:06
from enum import Enum, unique


@unique
class WeChatMiniProgramConfigEnum(Enum):
    AppID = 'wx21134afc92f1c08c'
    AppSecret = '4e3758b1f0b2b5514e6f651616ece824'
    AccessTokenKey = 'WeChatMiniProgramAccessToken'
    SnTicketKey = 'SnTicket'
    ModelIdDict = {
        'C520': 'W1ZeridtRlQeo8RIX8vW6g'
    }


@unique
class WeChatMiniProgramAPIEnum(Enum):
    getAccessTokenAPI = 'https://api.weixin.qq.com/cgi-bin/token'
    getPhoneNumberAPI = 'https://api.weixin.qq.com/wxa/business/getuserphonenumber?access_token={}'
    code2SessionAPI = 'https://api.weixin.qq.com/sns/jscode2session'
    checkSessionKeyAPI = 'https://api.weixin.qq.com/wxa/checksession'
    getSnTicketAPI = 'https://api.weixin.qq.com/wxa/getsnticket?access_token={}'
    sendDeviceMsgAPI = 'https://api.weixin.qq.com/cgi-bin/message/device/subscribe/send?access_token={}'
