using APT.BaseData.Domain.Entities; using APT.BaseData.Domain.IServices; using APT.Infrastructure.Core; using Microsoft.AspNetCore.Mvc; using System; using System.Collections.Generic; using APT.Utility;namespace APT.PF.WebApiControllers.Api.PF { [Route("api/PF/Label")] [APT.Infrastructure.Api.RootOrg] public class LabelController : AuthorizeApiController { private IPFLabelService LabelService { get; set; } public LabelController(IPFLabelService LabelService) { this.LabelService = LabelService; } /// /// /// /// /// /// /// [HttpGet, Route("List")] public JsonActionResult> List(Guid? orgId, string language) { return SafeExecute(() => { return new List(); }); } /// /// 更新信息 /// /// /// [HttpPost, Route("Update")] public JsonActionResult Update([FromBody]T_PF_LABEL label) { return SafeExecute(() => { return this.UpdateEntity(label); }); } /// /// 删除信息 /// /// /// [HttpGet, Route("Delete")] public JsonActionResult Delete(string id) { return SafeExecute(() => { return this.DeleteEntity(id); }); } /// /// 批量删除 /// /// /// [HttpGet, Route("BatchDelete")] public JsonActionResult BatchDelete(string ids) { return WitBatchDelete(ids); } [HttpGet, Route("Get")] public JsonActionResult Get(string id) { return SafeExecute(() => { return this.GetEntity(id); }); } //[HttpGet, Route("Get")] //public JsonActionResult GetLabel(Guid? orgId, string tableName, string languge, string field) //{ // return SafeExecute(() => // { // return new T_PF_LABEL(); // }); //} } }