Files
juipnet/Infrastructure/WxApi/Enums.cs
wanyongkang d318014316 初始提交
2020-10-07 20:25:03 +08:00

310 lines
8.5 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
namespace Hncore.Wx.Open
{
/// <summary>
/// 选项设置信息选项名称
/// </summary>
public enum OptionName
{
/// <summary>
/// 地理位置上报选项
/// 0 无上报
/// 1 进入会话时上报
/// 2 每5s上报
/// </summary>
location_report,
/// <summary>
/// 语音识别开关选项
/// 0 关闭语音识别
/// 1 开启语音识别
/// </summary>
voice_recognize,
/// <summary>
/// 客服开关选项
/// 0 关闭多客服
/// 1 开启多客服
/// </summary>
customer_service
}
/// <summary>
/// 公众号第三方平台推送消息类型
/// </summary>
public enum RequestInfoType
{
#region
/// <summary>
/// 推送component_verify_ticket协议
/// </summary>
component_verify_ticket,
/// <summary>
/// 推送取消授权通知
/// </summary>
unauthorized,
/// <summary>
/// 更新授权
/// </summary>
updateauthorized,
/// <summary>
/// 授权成功通知
/// </summary>
authorized,
/// <summary>
/// 小程序注册审核事件推送
/// </summary>
notify_third_fasteregister,
#endregion
#region
/// <summary>
/// 关注事件
/// </summary>
event_subscribe,
/// <summary>
/// 取消关注事件
/// </summary>
event_unsubscribe,
/// <summary>
/// 扫描关注
/// </summary>
event_subscribe_qrscene,
/// <summary>
/// 扫描已关注的事件
/// </summary>
event_SCAN,
/// <summary>
/// 上报地理位置
/// </summary>
event_LOCATION,
/// <summary>
/// 自定义菜单事件
/// </summary>
event_CLICK,
/// <summary>
/// 点击菜单跳转链接
/// </summary>
event_VIEW,
#endregion
#region
/// <summary>
/// 文本消息
/// </summary>
text,
/// <summary>
/// 图片消息
/// </summary>
image,
/// <summary>
/// 语音消息
/// </summary>
voice,
/// <summary>
/// 视频消息
/// </summary>
video,
/// <summary>
/// 音乐消息
/// </summary>
music,
/// <summary>
/// 图文消息
/// </summary>
news,
/// <summary>
/// 未知消息
/// </summary>
none
#endregion
}
/// <summary>
/// 应用授权作用域
/// </summary>
public enum OAuthScope
{
/// <summary>
/// 不弹出授权页面直接跳转只能获取用户openid
/// </summary>
snsapi_base,
/// <summary>
/// 弹出授权页面可通过openid拿到昵称、性别、所在地。并且即使在未关注的情况下只要用户授权也能获取其信息
/// </summary>
snsapi_userinfo,
/// <summary>
/// 网站应用授权登录
/// </summary>
snsapi_login,
}
/// <summary>
/// 授权方公众号类型
/// </summary>
public enum ServiceType
{
#pragma warning disable CS1591 // 缺少对公共可见类型或成员的 XML 注释
= 0,
= 1,
= 2
#pragma warning restore CS1591 // 缺少对公共可见类型或成员的 XML 注释
}
/// <summary>
/// 授权方认证类型
/// </summary>
public enum VerifyType
{
#pragma warning disable CS1591 // 缺少对公共可见类型或成员的 XML 注释
= -1,
= 0,
= 1,
= 2,
= 3,
= 4,
= 5
#pragma warning restore CS1591 // 缺少对公共可见类型或成员的 XML 注释
}
/// <summary>
/// <para>公众号/小程序授权给开发者的权限集列表(1-15为公众号权限,17-19为小程序权限)。</para>
/// <para>请注意1该字段的返回不会考虑公众号是否具备该权限集的权限因为可能部分具备请根据公众号的帐号类型和认证情况来判断公众号的接口权限。</para>
/// </summary>
public enum FuncscopeCategory
{
#pragma warning disable CS1591 // 缺少对公共可见类型或成员的 XML 注释
= 1,
= 2,
= 3,
= 4,
= 5,
= 6,
= 7,
= 8,
= 9,
WIFI权限 = 10,
= 11,
= 12,
= 13,
= 14,
= 15,
= 16,
_小程序 = 17,
_小程序 = 18,
_小程序 = 19,
_小程序 = 20,
_小程序 = 21,
= 22,
广 = 23,
= 24,
_小程序 = 25,
= 26,
= 27,
= 33,
= 35
#pragma warning restore CS1591 // 缺少对公共可见类型或成员的 XML 注释
}
/// <summary>
/// 小程序“修改服务器地址”接口的action类型
/// </summary>
public enum ModifyDomainAction
{
/// <summary>
/// 添加
/// </summary>
add,
/// <summary>
/// 删除
/// </summary>
delete,
/// <summary>
/// 覆盖
/// </summary>
set,
/// <summary>
/// 获取
/// </summary>
get
}
/// <summary>
/// 小程序“线上代码的可见状态”接口的action类型
/// </summary>
public enum ChangVisitStatusAction
{
open,
close
}
/// <summary>
/// 帐号类型1订阅号2服务号3小程序
/// </summary>
public enum AccountType
{
= 1,
= 2,
= 3
}
/// <summary>
/// 主体类型1企业
/// </summary>
public enum PrincipalType
{
= 1
}
/// <summary>
/// 1实名验证成功2实名验证中3实名验证失败
/// </summary>
public enum RealNameStatus
{
= 1,
= 2,
= 3
}
/// <summary>
/// 小程序昵称审核状态1审核中2审核失败3审核成功
/// </summary>
public enum AuditStat
{
= 1,
= 2,
= 3
}
/// <summary>
/// 小程序类目审核状态1审核中2审核失败3审核成功
/// </summary>
public enum AuditStatus
{
= 1,
= 2,
= 3
}
/// <summary>
/// 要授权的帐号类型
/// </summary>
public enum LoginAuthType
{
,
= 1,
= 2,
= 3
}
/// <summary>
/// 企业代码类型 1统一社会信用代码18位 2组织机构代码9位xxxxxxxx-x 3营业执照注册号(15位)
/// </summary>
public enum CodeType
{
=1,
=2,
=3
}
}