41 lines
1.1 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.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Learun.Application.WeChat
{
/// <summary>
/// 创建部门
/// </summary>
public class DepartmentCreate : OperationRequestBase<DepartmentResult, HttpPostRequest>
{
protected override string Url()
{
return "https://qyapi.weixin.qq.com/cgi-bin/department/create?access_token=ACCESS_TOKEN";
}
/// <summary>
/// 部门名称。长度限制为1~64个字符
/// </summary>
/// <returns></returns>
[Length(1, 64)]
[IsNotNull]
public string name { get; set; }
/// <summary>
/// 父亲部门id。根部门id为1
/// </summary>
/// <returns></returns>
[IsNotNull]
public string parentid { get; set; }
/// <summary>
/// 在父部门中的次序。从1开始数字越大排序越靠后
/// </summary>
/// <returns></returns>
public string order { get; set; }
}
}