service/vendor/codecreate/consts/consts.go

58 lines
1.5 KiB
Go
Raw Normal View History

2023-12-21 22:17:40 +08:00
package consts
// root
const RootPath = "/Users/PC/Desktop/wishpal-ironfan/"
const ExcelPath = "codecreate/resource/EntityDefine.xlsx"
const TemplateRootPath = "codecreate/template/"
// in
const ControllerCenterInPath = RootPath + TemplateRootPath + "controller_center.txt"
const ControllerInPath = RootPath + TemplateRootPath + "controller.txt"
const EntityInPath = RootPath + TemplateRootPath + "entity.txt"
const ErrCodeInPath = RootPath + TemplateRootPath + "errcode.txt"
const IdGeneratorInPath = RootPath + TemplateRootPath + "idgenerator.txt"
const MongoInPath = RootPath + TemplateRootPath + "mongo.txt"
const ProtoInPath = RootPath + TemplateRootPath + "proto.txt"
const ServiceCenterInPath = RootPath + TemplateRootPath + "service_center.txt"
const ServiceInPath = RootPath + TemplateRootPath + "service.txt"
// out
const ControllerOutPath = "app/mix/controller/"
const ControllerCenterOutPath = "app/mix/controller/"
const ServiceOutPath = "app/mix/service/logic/"
const ServiceCenterOutPath = "app/mix/service/"
const EntityOutPath = "dbstruct/"
const ErrcodeOutPath = "api/errcode/"
const IdgeneratorOutPath = "library/idgenerator/"
const MongoOutPath = "app/mix/dao/"
const ProtoOutPath = "api/proto/"
// placeholder
const EntityNamePlaceHolder = "#{EntityName}"
const EntityCNNamePlaceHolder = "#{EntityCNName}"
const ModuleNamePlaceHolder = "#{moduleName}"
const ErrCodeSeqPlaceHolder = "#{ErrCodeSeq}"
const EntityDefinationPlaceHolder = "#{EntityDefination}"