Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenEntLogic ¶
func GenEntLogic(g *GenEntLogicContext) error
GenEntLogic generates the ent CRUD logic files of the rpc service.
func GenProtoData ¶
Types ¶
type GenEntLogicContext ¶
type GenEntLogicContext struct { Schema string Output string ServiceName string ProjectName string Style string ProtoFieldStyle string ModelName string Multiple bool SearchKeyNum int ModuleName string GroupName string UseUUID bool UseI18n bool ProtoOut string ImportPrefix string Overwrite bool }
func (GenEntLogicContext) Validate ¶
func (g GenEntLogicContext) Validate() error
type RpcLogicData ¶
func GenCRUDData ¶
func GenCRUDData(g *GenEntLogicContext, projectCtx *ctx.ProjectContext, schema *load.Schema) []*RpcLogicData
Click to show internal directories.
Click to hide internal directories.