using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Zxd.Domain.Dto { public class WeworkUserAssignDto { public WeworkUserAssignDto() { } public WeworkUserAssignDto(string appuserid, int channel, int curchannel, string remark) : this(1, "com.dongniu", appuserid, string.Empty, channel, curchannel, 0, string.Empty, remark) { this.appuserid = appuserid; this.channel = channel; this.curchannel = curchannel; this.remark = remark; } public WeworkUserAssignDto(int apptype, string appid, string appuserid, string unionid, int channel, int curchannel, int type, string livecode, string remark) { this.apptype = apptype; this.appid = appid; this.appuserid = appuserid; this.unionid = unionid; this.channel = channel; this.curchannel = curchannel; this.type = type; this.livecode = livecode; this.remark = remark; } public int apptype { get; set; } public string appid { get; set; } public string appuserid { get; set; } public string unionid { get; set; } public int channel { get; set; } public int curchannel { get; set; } public int type { get; set; } public string livecode { get; set; } public string remark { get; set; } } public class AssignQuery { public AssignQuery(string appid, string appuserid, int channel, int curchannel, string remark) : this(appid, appuserid, string.Empty, channel, curchannel, 0, string.Empty, remark, string.Empty, string.Empty, string.Empty) { } public AssignQuery(string appid, string appuserid, string unionid, int channel, int curchannel, int type, string livecode, string remark, string remarkext, string memo, string eid) { this.appid = appid; this.appuserid = appuserid; this.unionid = unionid; this.channel = channel; this.curchannel = curchannel; this.type = type; this.livecode = livecode; this.remark = remark; this.remarkext = remarkext; this.memo = memo; this.eid = eid; } public string appid { get; set; } public string appuserid { get; set; } public string unionid { get; set; } public int channel { get; set; } public int curchannel { get; set; } public int type { get; set; }//1、返回二维码链接、0、不需要返回二码码链接 public string livecode { get; set; } //活码标识,30字符以内 public string remark { get; set; }//标记,30字符以内 public string remarkext { get; set; }//标记补充,30字符以内 public string memo { get; set; } public string eid { get; set; }//工号 } public class WeworkUserAssignMessage { public int errcode { get; set; } public string errmsg { get; set; } public WeworkUserAssignResult data { get; set; } } public class WeworkUserAssignResult { public string eid { get; set; } public int? groupid { get; set; } public string qr { get; set; } } }