using GrapeCity.Forguncy.ServerApi;
using Microsoft.AspNetCore.Http;
using System.Security.Cryptography;
using System.Text;
using System;
using System.Threading.Tasks;
namespace MYAPI
{
public class MyAPI : ForguncyApi
{
[Post]
public async Task TestPostAPI()
{
//获取post请求的数据
var form = await Context.Request.ReadFormAsync();
var message = form["message"][0];
var key = form["key"][0];
await this.Context.Response.WriteAsync(message + key);