github.com/turingchain2020/turingchain@v1.1.21/cmd/tools/types/types.go (about)

     1  // Copyright Turing Corp. 2018 All Rights Reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  // Package types 开发者工具相关常量等的定义
     6  package types
     7  
     8  //const
     9  const (
    10  	// 通过使用 go vendor 工具,从三方代码库中下载对应的插件代码
    11  	KeyImportPackage            = "import_package"
    12  	KeyCreateSimpleExecProject  = "create_simple_project"
    13  	KeyCreateAdvanceExecProject = "create_advance_project"
    14  	KeyConfigFolder             = "config_folder"
    15  	KeyProjectName              = "project_name"
    16  	KeyClassName                = "class_name"
    17  	KeyExecutorName             = "executor_name"
    18  	KeyActionName               = "action_name"
    19  	KeyProtobufFile             = "protobuf_file"
    20  	KeyTemplateFilePath         = "template_file_path"
    21  	KeyUpdateInit               = "update_init"
    22  	KeyCreatePlugin             = "create_plugin"
    23  	KeyGenDapp                  = "generate_dapp"
    24  	KeyDappOutDir               = "generate_dapp_out_dir"
    25  
    26  	DefCpmConfigfile = "turingchain.cpm.toml"
    27  
    28  	TagGoPath          = "${GOPATH}"
    29  	TagProjectName     = "${PROJECTNAME}"   // 项目名称替换标签
    30  	TagClassName       = "${CLASSNAME}"     // 主类类名替换标签
    31  	TagClassTypeName   = "${CLASSTYPENAME}" // ClassName+Type
    32  	TagActionName      = "${ACTIONNAME}"    // 执行器中使用的Action替换标签
    33  	TagExecName        = "${EXECNAME}"      // 执行器名称替换标签
    34  	TagProjectPath     = "${PROJECTPATH}"
    35  	TagExecNameFB      = "${EXECNAME_FB}" // 首字母大写的执行器名称替换标签
    36  	TagTyLogActionType = "${TYLOGACTIONTYPE}"
    37  	TagActionIDText    = "${ACTIONIDTEXT}"
    38  	TagLogMapText      = "${LOGMAPTEXT}"
    39  	TagTypeMapText     = "${TYPEMAPTEXT}"
    40  	TagTypeName        = "${TYPENAME}"
    41  
    42  	//TagImport
    43  	TagImportPath = "${IMPORTPATH}"
    44  
    45  	//Tag proto file
    46  	TagProtoFileContent = "${PROTOFILECONTENT}"
    47  	TagProtoFileAppend  = "${PROTOFILEAPPEND}"
    48  
    49  	//Tag exec.go file
    50  	TagExecFileContent         = "${EXECFILECONTENT}"
    51  	TagExecLocalFileContent    = "${EXECLOCALFILECONTENT}"
    52  	TagExecDelLocalFileContent = "${EXECDELLOCALFILECONTENT}"
    53  
    54  	TagExecObject = "${EXEC_OBJECT}" //执行器类函数接收对象, 默认为首字母
    55  )