using Furion.DependencyInjection; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace RoadFlow.Data { public class FlowButton:RoadFlowRepository,IFlowButton, ITransient { /// /// 得到一个按钮 /// /// /// public Model.rf_flowbutton Get(string id) { return GetOneById(id); } /// /// 得到按钮显示标题(多语言时) /// /// 语言 /// 按钮实体 /// 输出备注 /// public string GetLanguageTitle(Model.rf_flowbutton flowButton, out string note, string language = "zh-CN") { note = string.Empty; if (null == flowButton) { return string.Empty; } string title; switch (language) { case "en-US": title = flowButton.Title_en; note = flowButton.Note_en; break; case "zh": title = flowButton.Title_zh; note = flowButton.Note_zh; break; default: title = flowButton.Title; note = flowButton.Note; break; } return title; } } }