You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
|
|
namespace HuizhongLibrary.Weixin
|
|
|
|
|
{
|
|
|
|
|
public class WeixinDepartMent
|
|
|
|
|
{
|
|
|
|
|
public string name { get; set; }
|
|
|
|
|
public int parentid { get; set; }
|
|
|
|
|
public int order { get; set; }
|
|
|
|
|
public int id { get; set; }
|
|
|
|
|
|
|
|
|
|
public string ToJsonString()
|
|
|
|
|
{
|
|
|
|
|
StringBuilder sb = new StringBuilder();
|
|
|
|
|
sb.Append("{");
|
|
|
|
|
sb.Append("\"name\":\"" + this.name + "\",");
|
|
|
|
|
sb.Append("\"parentid\":" + this.parentid +",");
|
|
|
|
|
sb.Append("\"order\":" + this.order + ",");
|
|
|
|
|
sb.Append("\"id\":" + this.id);
|
|
|
|
|
sb.Append("}");
|
|
|
|
|
return sb.ToString();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|