bag
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
namespace Yh.SchClass.OpenApi;
|
||||
|
||||
/// <summary>
|
||||
/// 教务家长兼容接口客户端(镜像 Java <c>FamilyCompatController</c>,路径前缀 <c>/oapi/Common/FamCom/</c>)。
|
||||
/// 两个端点当前服务端均恒返回空数据,保留调用以兼容既有消费方。
|
||||
/// </summary>
|
||||
public class SchClassFamilyCompatClient : SchClassClientBase
|
||||
{
|
||||
private const string Root = Prefix + "/Common/FamCom/";
|
||||
|
||||
public SchClassFamilyCompatClient(HttpClient httpClient, SchClassOpenApiOptions options)
|
||||
: base(httpClient, options)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查询学生家长用户 ID 列表,<c>POST /oapi/Common/FamCom/GetStuUserFamIDList</c>;
|
||||
/// 请求体为逗号分隔的学生 ID(Java 侧 <c>@RequestBody String</c>,按 text/plain 提交)。
|
||||
/// </summary>
|
||||
public Task<List<string>> GetStuUserFamIdListAsync(string? stuIds, CancellationToken ct = default)
|
||||
=> ResolveListAsync<string>(HttpMethod.Post, Root + "GetStuUserFamIDList", body: stuIds, ct: ct);
|
||||
|
||||
/// <summary>
|
||||
/// 查询学生家庭成员,<c>POST /oapi/Common/FamCom/GetAllStuFamMem</c>;
|
||||
/// 请求体为逗号分隔的学生 ID(text/plain)。
|
||||
/// </summary>
|
||||
public Task<List<SchClassRow>> GetAllStuFamMemAsync(string? stuIds, CancellationToken ct = default)
|
||||
=> ResolveRowsAsync(HttpMethod.Post, Root + "GetAllStuFamMem", body: stuIds, ct: ct);
|
||||
}
|
||||
Reference in New Issue
Block a user