1 Star 0 Fork 122

Murphy/DevelopAssistant

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
ResultEntity.cs 1.42 KB
一键复制 编辑 原始数据 按行查看 历史
wxd_tony1984 提交于 2019-08-03 13:26 +08:00 . 优化java Springboot 项目代码生成
using System;
using System.Collections.Generic;
namespace DevelopAssistant.AddIn.JavaProject
{
public class ResultEntity
{
public string Name { get; set; }
public string TypeName { get; set; }
public string SnippetCode { get; set; }
}
public class RequestEntity
{
public string Name { get; set; }
public string TypeName { get; set; }
public int ImageIndex { get; set; }
public RequestEntity(string Name,string TypeName)
{
switch (TypeName)
{
case "Entity":
this.ImageIndex = 0;
break;
case "Mapper":
this.ImageIndex = 1;
break;
case "DAO":
case "Dao":
this.ImageIndex = 2;
break;
case "IService":
this.ImageIndex = 3;
break;
case "Service":
case "ServiceImpl":
this.ImageIndex = 4;
break;
case "Controller":
this.ImageIndex = 4;
break;
}
this.Name = Name;
this.TypeName = TypeName;
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/mpbillion/DevelopAssistant.git
git@gitee.com:mpbillion/DevelopAssistant.git
mpbillion
DevelopAssistant
DevelopAssistant
master

搜索帮助