作者 yangfu

修改依赖以及dsl文件

正在显示 100 个修改的文件 包含 1516 行增加0 行删除

要显示太多修改。

为保证性能只显示 100 of 100+ 个文件。

version: v1
kind: HttpApi
metadata:
service: auth
path: /auth
endpoints:
- method: login
route:
post: /login
- method: profile
route:
post: /profile
- method: refresh
route:
post: /refresh
\ No newline at end of file
... ...
version: v1
kind: HttpApi
metadata:
service: clientVersion
path: /client-versions
endpoints:
- method: createClientVersion
route:
post: /
- method: updateClientVersion
route:
put: /{id}
- method: getClientVersion
route:
get: /{id}
- method: removeClientVersion
route:
delete: /{id}
- method: listClientVersion
route:
get: /
params:
- name: offset
- name: limit
... ...
version: v1
kind: HttpApi
metadata:
service: projectModule
path: /project-modules
endpoints:
- method: createProjectModule
route:
post: /
- method: updateProjectModule
route:
put: /{projectModuleId}
- method: getProjectModule
route:
get: /{projectModuleId}
- method: removeProjectModule
route:
delete: /{projectModuleId}
- method: listProjectModule
route:
get: /
params:
- name: offset
- name: limit
... ...
version: v1
kind: HttpApi
metadata:
service: projectModuleFiles
path: /project-module-filess
endpoints:
- method: createProjectModuleFiles
route:
post: /
- method: updateProjectModuleFiles
route:
put: /{projectModuleFilesId}
- method: getProjectModuleFiles
route:
get: /{projectModuleFilesId}
- method: removeProjectModuleFiles
route:
delete: /{projectModuleFilesId}
- method: listProjectModuleFiles
route:
get: /
params:
- name: offset
- name: limit
... ...
version: v1
kind: HttpApi
metadata:
service: projectModuleVersion
path: /project-module-versions
endpoints:
- method: createProjectModuleVersion
route:
post: /
- method: updateProjectModuleVersion
route:
put: /{projectModuleVersionId}
- method: getProjectModuleVersion
route:
get: /{projectModuleVersionId}
- method: removeProjectModuleVersion
route:
delete: /{projectModuleVersionId}
- method: listProjectModuleVersion
route:
get: /
params:
- name: offset
- name: limit
... ...
version: v1
kind: HttpApi
metadata:
service: rbac
path: /rbacs
endpoints:
- method: access
route:
get: /access
- method: roleAccess
route:
get: /roleAccess/{roleId}
- method: setRoleAccess
route:
post: /setRoleAccess
\ No newline at end of file
... ...
version: v1
kind: HttpApi
metadata:
service: role
path: /roles
endpoints:
- method: createRole
route:
post: /
- method: updateRole
route:
put: /{Id}
- method: getRole
route:
get: /{Id}
- method: removeRole
route:
delete: /{Id}
- method: listRole
route:
get: /
params:
- name: offset
- name: limit
... ...
version: v1
kind: HttpApi
metadata:
service: task
path: /tasks
endpoints:
- method: createTask
route:
post: /
- method: updateTask
route:
put: /{taskId}
- method: getTask
route:
get: /{taskId}
- method: removeTask
route:
delete: /{taskId}
- method: listTask
route:
get: /
params:
- name: offset
- name: limit
... ...
version: v1
kind: HttpApi
metadata:
service: users
path: /users
endpoints:
- method: createUsers
route:
post: /
- method: updateUsers
route:
put: /{Id}
- method: getUsers
route:
get: /{Id}
- method: removeUsers
route:
delete: /{Id}
- method: listUsers
route:
get: /
params:
- name: offset
- name: limit
... ...
version: v1
kind: Attribute
metadata:
name: AccessCode
description: 权限名称
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: AccessName
description: 权限名称
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: AccessType
description: 权限类型 menu button data
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: Action
description: 操作方法 httpMethod/read/write
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: Icon
description: 图标
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: Module
description: 所属功能模块
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: Object
description: 请求对象 接口地址/对象
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: Option
description: 可选对象
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: Status
description: 状态 1-启用 0-禁用
type:
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: accessToken
description: 权限token
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: expiresIn
description: accessToken 过期时间
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: refreshToken
description: 刷新token
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: CreateTime
description: 创建时间
type:
primitive: datetime
... ...
version: v1
kind: Attribute
metadata:
name: Id
description: dcc
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: Name
description: 名称
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: ParentId
description: 父级Id
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: Sort
description: 排序
type:
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: UpdateTime
description: 更新时间
type:
primitive: datetime
... ...
version: v1
kind: Attribute
metadata:
name: aa
description: test
type:
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: description
description: 描述信息
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: sortById
description: cvdfgadgdfg
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: status
description: 状态 1:正常 2:删除
type:
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: count
description: 匹配数目
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: limit
description: 查询限制
type:
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: offset
description: 查询偏离量
type:
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: projectKey
description: 项目唯一键值
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: projectName
description: 项目名称
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: version
description: 项目编号
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: codeBlock
description: 代码块
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: fileKey
description: 文件键值
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: fileName
description: 文件名称
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: fileType
description: 文件类型 1:文件夹 2:文件
type:
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: path
description: 当前文件相对路径 a/b/c
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: tag
description: 标签
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: RoleName
description: 角色名称
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: AccessId
description: 权限编号
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: RoleId
description: 角色id
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: projectModuleFilesId
description: 项目文件编号
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: projectModuleId
description: 项目编号
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: projectModuleVersionId
description: 项目版本编号
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: usersId
description: user - id
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: taskId
description: 任务编号
type:
primitive: int64
... ...
version: v1
kind: Attribute
metadata:
name: taskName
description: 任务名称
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: AdminType
description: 1:管理员 2:普通员工
type:
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: Passwd
description: 密码
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: Phone
description: 手机号
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: Roles
description: 用户角色
type:
array: int64
... ...
version: v1
kind: Attribute
metadata:
name: Status
description: 1:启用 2:禁用
type:
primitive: int
... ...
func CreateAccessRepository(options map[string]interface{}) (domain.AccessRepository, error) {
var transactionContext *pg.TransactionContext
if value, ok := options["transactionContext"]; ok {
transactionContext = value.(*pg.TransactionContext)
}
return repository.NewAccessRepository(transactionContext)
}
func CreateAccessRepository(options map[string]interface{}) (domain.AccessRepository, error) {
var transactionContext *pg.TransactionContext
if value, ok := options["transactionContext"]; ok {
transactionContext = value.(*pg.TransactionContext)
}
return repository.NewAccessRepository(transactionContext)
}
func CreateAccessRepository(options map[string]interface{}) (domain.AccessRepository, error) {
var transactionContext *pg.TransactionContext
if value, ok := options["transactionContext"]; ok {
transactionContext = value.(*pg.TransactionContext)
}
return repository.NewAccessRepository(transactionContext)
}
\ No newline at end of file
... ...
package domain
// 权限
type Access struct {
// dcc
Id int64 `json:"id"`
// 父级Id
ParentId int64 `json:"parentId"`
// 权限名称
AccessName string `json:"accessName"`
// 权限名称
AccessCode string `json:"accessCode"`
// 权限类型 menu button data
AccessType string `json:"accessType"`
// 排序
Sort int `json:"sort"`
// 请求对象 接口地址/对象
Object string `json:"object"`
// 操作方法 httpMethod/read/write
Action string `json:"action"`
// 所属功能模块
Module string `json:"module"`
// 图标
Icon string `json:"icon"`
// 状态 1-启用 0-禁用
Status int `json:"status"`
}
type AccessRepository interface {
Save(access *Access) (*Access, error)
Remove(access *Access) (*Access, error)
FindOne(queryOptions map[string]interface{}) (*Access, error)
Find(queryOptions map[string]interface{}) (int64, []*Access, error)
}
func (access *Access) Identify() interface{} {
if access.Id == 0 {
return nil
}
return access.Id
}
func (access *Access) Update(data map[string]interface{}) error {
if Id, ok := data["Id"]; ok {
access.Id = Id.(int64)
}
if ParentId, ok := data["ParentId"]; ok {
access.ParentId = ParentId.(int64)
}
if AccessName, ok := data["AccessName"]; ok {
access.AccessName = AccessName.(string)
}
if AccessCode, ok := data["AccessCode"]; ok {
access.AccessCode = AccessCode.(string)
}
if AccessType, ok := data["AccessType"]; ok {
access.AccessType = AccessType.(string)
}
if Sort, ok := data["Sort"]; ok {
access.Sort = Sort.(int)
}
if Object, ok := data["Object"]; ok {
access.Object = Object.(string)
}
if Action, ok := data["Action"]; ok {
access.Action = Action.(string)
}
if Module, ok := data["Module"]; ok {
access.Module = Module.(string)
}
if Icon, ok := data["Icon"]; ok {
access.Icon = Icon.(string)
}
if Status, ok := data["Status"]; ok {
access.Status = Status.(int)
}
return nil
}
... ...
package models
type Access struct {
TableName string `pg:"accesss,alias:access"`
// dcc
Id int64
// 父级Id
ParentId int64
// 权限名称
AccessName string
// 权限名称
AccessCode string
// 权限类型 menu button data
AccessType string
// 排序
Sort int
// 请求对象 接口地址/对象
Object string
// 操作方法 httpMethod/read/write
Action string
// 所属功能模块
Module string
// 图标
Icon string
// 状态 1-启用 0-禁用
Status int
}
... ...
package repository
import (
"fmt"
"github.com/go-pg/pg"
pgTransaction "github.com/linmadan/egglib-go/transaction/pg"
"github.com/tiptok/godevp/pkg/domain"
"github.com/tiptok/godevp/pkg/infrastructure/pg/models"
)
type AccessRepository struct {
transactionContext *pgTransaction.TransactionContext
}
func (repository *AccessRepository) nextIdentify() (int64, error) {
return 0, nil
}
func (repository *AccessRepository) Save(access *domain.Access) (*domain.Access, error) {
tx := repository.transactionContext.PgTx
if access.Identify() == nil {
_, err := repository.nextIdentify()
if err != nil {
return access, err
}
if _, err := tx.QueryOne(
pg.Scan(&access.Id, &access.ParentId, &access.AccessName, &access.AccessCode, &access.AccessType, &access.Sort, &access.Object, &access.Action, &access.Module, &access.Icon, &access.Status),
"INSERT INTO accesss (id, parent_id, access_name, access_code, access_type, sort, object, action, module, icon, status) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING id, parent_id, access_name, access_code, access_type, sort, object, action, module, icon, status",
access.Id, access.ParentId, access.AccessName, access.AccessCode, access.AccessType, access.Sort, access.Object, access.Action, access.Module, access.Icon, access.Status); err != nil {
return access, err
}
} else {
if _, err := tx.QueryOne(
pg.Scan(&access.Id, &access.ParentId, &access.AccessName, &access.AccessCode, &access.AccessType, &access.Sort, &access.Object, &access.Action, &access.Module, &access.Icon, &access.Status),
"UPDATE accesss SET id=?, parent_id=?, access_name=?, access_code=?, access_type=?, sort=?, object=?, action=?, module=?, icon=?, status=? WHERE id=? RETURNING id, parent_id, access_name, access_code, access_type, sort, object, action, module, icon, status",
access.Id, access.ParentId, access.AccessName, access.AccessCode, access.AccessType, access.Sort, access.Object, access.Action, access.Module, access.Icon, access.Status, access.Identify()); err != nil {
return access, err
}
}
return access, nil
}
func (repository *AccessRepository) Remove(access *domain.Access) (*domain.Access, error) {
tx := repository.transactionContext.PgTx
accessModel := new(models.Access)
accessModel.Id = access.Identify().(int64)
if _, err := tx.Model(accessModel).WherePK().Delete(); err != nil {
return access, err
}
return access, nil
}
func (repository *AccessRepository) FindOne(queryOptions map[string]interface{}) (*domain.Access, error) {
tx := repository.transactionContext.PgTx
accessModel := new(models.Access)
query := tx.Model(accessModel)
if accessId, ok := queryOptions["accessId"]; ok {
query = query.Where("access.id = ?", accessId)
}
if err := query.First(); err != nil {
if err.Error() == "pg: no rows in result set" {
return nil, fmt.Errorf("没有此资源")
} else {
return nil, err
}
}
if accessModel.Id == 0 {
return nil, nil
} else {
return repository.transformPgModelToDomainModel(accessModel)
}
}
func (repository *AccessRepository) Find(queryOptions map[string]interface{}) (int64, []*domain.Access, error) {
tx := repository.transactionContext.PgTx
var accessModels []*models.Access
accesss := make([]*domain.Access, 0)
query := tx.Model(&accessModels)
if offset, ok := queryOptions["offset"]; ok {
offset := offset.(int)
if offset > -1 {
query = query.Offset(offset)
}
} else {
query = query.Offset(0)
}
if limit, ok := queryOptions["limit"]; ok {
limit := limit.(int)
if limit > -1 {
query = query.Limit(limit)
}
} else {
query = query.Limit(20)
}
if count, err := query.Order("id DESC").SelectAndCount(); err != nil {
return 0, accesss, err
} else {
for _, accessModel := range accessModels {
if access, err := repository.transformPgModelToDomainModel(accessModel); err != nil {
return 0, accesss, err
} else {
accesss = append(accesss, access)
}
}
return int64(count), accesss, nil
}
}
func (repository *AccessRepository) transformPgModelToDomainModel(accessModel *models.Access) (*domain.Access, error) {
return &domain.Access{
Id: accessModel.Id,
ParentId: accessModel.ParentId,
AccessName: accessModel.AccessName,
AccessCode: accessModel.AccessCode,
AccessType: accessModel.AccessType,
Sort: accessModel.Sort,
Object: accessModel.Object,
Action: accessModel.Action,
Module: accessModel.Module,
Icon: accessModel.Icon,
Status: accessModel.Status,
}, nil
}
func NewAccessRepository(transactionContext *pgTransaction.TransactionContext) (*AccessRepository, error) {
if transactionContext == nil {
return nil, fmt.Errorf("transactionContext参数不能为nil")
} else {
return &AccessRepository{
transactionContext: transactionContext,
}, nil
}
}
... ...
version: v1
kind: Project
metadata:
name: godevp
description: 开发工具平台
version: 0.0.1
repository: github.com/tiptok/godevp
contact:
name: tiptok
email: 785409885@qq.com
\ No newline at end of file
... ...
version: v1
kind: Schema
metadata:
name: access
description: 权限
attributes:
- ref: Id
required: true
- ref: ParentId
required: true
- ref: AccessName
required: true
- ref: AccessCode
required: true
- ref: AccessType
required: true
- ref: Sort
required: true
- ref: Object
required: true
- ref: Action
required: true
- ref: Module
required: true
- ref: Icon
required: true
- ref: Status
required: true
... ...
version: v1
kind: Schema
metadata:
name: authAccess
description: 权限
attributes:
- ref: accessToken
required: true
- ref: expiresIn
required: true
- ref: refreshToken
required: true
... ...
version: v1
kind: Schema
metadata:
name: authRole
description: 权限角色
attributes:
- name: id
description: 角色id
type:
primitive: string
- name: name
description: 角色名称
type:
primitive: string
... ...
version: v1
kind: Schema
metadata:
name: authUser
description: 权限用户
attributes:
- name: id
description: 用户id
type:
primitive: int64
- name: adminType
description: 管理员类型 1:超级管理员 2:普通账号
type:
primitive: int
- name: name
description: 名称
type:
primitive: string
- name: phone
description: 电话
type:
primitive: string
- name: roles
description: 角色列表
type:
array: authRole
... ...
version: v1
kind: Schema
metadata:
name: clientPackageInfo
description: 客户端安装包信息
attributes:
- name: fileName
description: 文件名
type:
primitive: string
- name: path
description: 文件路径
type:
primitive: string
... ...
version: v1
kind: Schema
metadata:
name: clientVersion
description: 客户端版本信息
attributes:
- ref: Id
required: true
- name: commiter
description: 提交人
type:
primitive: string
- name: projectName
description: 项目名称
type:
primitive: string
- name: version
description: 版本号
type:
primitive: string
- name: title
description: 标题
type:
primitive: string
- name: remark
description: 其他备注信息
type:
primitive: string
- name: clientPackageInfo
description: 客户端安装包信息
type:
array: clientPackageInfo
- name: createTime
description: 创建时间
type:
primitive: datetime
... ...
version: v1
kind: Schema
metadata:
name: menu
description: 菜单
attributes:
- name: id
description: 编号
type:
primitive: int64
- name: parentId
description: 父级id
type:
primitive: int64
- name: name
description: 菜单名称
type:
primitive: string
- name: code
description: 菜单code
type:
primitive: string
- name: sort
description: 排序
type:
primitive: int
- name: icon
description: 图标地址
type:
primitive: string
- name: status
description: 状态 1-启用 0-禁用
type:
primitive: int
... ...
version: v1
kind: Schema
metadata:
name: projectModule
description: 项目模块
attributes:
- name: id
type:
primitive: int64
description: 唯一标识
required: true
- ref: projectName
required: true
- ref: projectKey
required: true
- ref: description
required: true
- ref: status
required: true
- ref: CreateTime
required: true
- ref: UpdateTime
required: true
- name: projectModuleVersion
required: true
description: 项目模板版本信息
type:
schema: projectModuleVersion
... ...
version: v1
kind: Schema
metadata:
name: projectModuleFiles
description: 项目模板文件
attributes:
- name: id
type:
primitive: int64
description: 唯一标识
- ref: projectModuleId
required: true
- ref: projectModuleVersionId
required: true
- ref: fileType
required: true
- ref: codeBlock
required: true
- ref: ParentId
required: true
- ref: Sort
required: true
- name: remark
type:
primitive: string
description: 备注信息
- ref: CreateTime
required: true
- ref: UpdateTime
required: true
- ref: path
required: true
- ref: tag
required: true
... ...
version: v1
kind: Schema
metadata:
name: projectModuleVersion
description: 项目模块版本
attributes:
- name: id
type:
primitive: int64
description: 唯一标识
- ref: projectModuleId
required: true
- name: version
description: 版本号
required: true
type:
primitive: int64
- ref: description
required: true
- ref: status
required: true
- ref: CreateTime
required: true
- ref: UpdateTime
required: true
... ...
version: v1
kind: Schema
metadata:
name: role
description: 角色实体
attributes:
- ref: Id
required: true
- ref: RoleName
required: true
- ref: ParentId
required: true
- ref: CreateTime
required: true
- ref: UpdateTime
required: true
... ...
version: v1
kind: Schema
metadata:
name: roleAccess
description: 角色权限
attributes:
- ref: Id
required: true
- ref: RoleId
required: true
- ref: AccessId
required: true
- ref: Object
required: true
- ref: Action
required: true
- ref: Option
required: true
... ...
version: v1
kind: Schema
metadata:
name: task
description: 任务实体
attributes:
- ref: taskId
required: true
- ref: taskName
required: true
- name: taskDescription
description: 任务描述
type:
primitive: string
... ...
version: v1
kind: Schema
metadata:
name: users
description: 用户实体
attributes:
- ref: Id
required: true
- ref: Name
required: true
- ref: Phone
required: true
- ref: Passwd
required: true
- ref: Roles
required: true
- ref: Status
required: true
- ref: AdminType
required: true
- ref: CreateTime
required: true
- ref: UpdateTime
required: true
... ...
version: v1
kind: Method
metadata:
name: login
type: command
description: 登录
payload:
- name: username
type:
primitive: string
description: 用户名
required: true
- name: password
type:
primitive: string
description: 密码
required: true
result:
- name: access
type:
schema: authAccess
... ...
version: v1
kind: Method
metadata:
name: profile
type: command
description: 获得当前用户数据
payload:
- name: userId
type:
primitive: int64
required: true
result:
- name: menus
type:
array: menu
- name: user
type:
schema: authUser
... ...
version: v1
kind: Method
metadata:
name: refresh
type: command
description: 刷新权限
payload:
- name: refreshToken
type:
primitive: string
required: true
result:
- name: access
type:
schema: authAccess
... ...
version: v1
kind: Service
metadata:
name: auth
description: 认证服务
... ...
version: v1
kind: Method
metadata:
name: createClientVersion
type: command
description: 创建
payload:
- name: commiter
description: 提交人
type:
primitive: string
- name: projectName
description: 项目名称
type:
primitive: string
- name: version
description: 版本号
type:
primitive: string
- name: title
description: 标题
type:
primitive: string
- name: remark
description: 其他备注信息
type:
primitive: string
- name: clientPackageInfo
description: 客户端安装包信息
type:
array: clientPackageInfo
result:
- name: clientVersion
type:
schema: clientVersion
... ...
version: v1
kind: Method
metadata:
name: getClientVersion
type: query
description: 返回
payload:
- ref: Id
required: true
result:
- name: clientVersion
type:
schema: clientVersion
... ...
version: v1
kind: Method
metadata:
name: listClientVersion
type: query
description: 返回列表
payload:
- ref: offset
required: true
- ref: limit
required: true
result:
- ref: count
required: true
- name: clientVersions
type:
array: clientVersion
\ No newline at end of file
... ...
version: v1
kind: Method
metadata:
name: removeClientVersion
type: command
description: 移除
payload:
- ref: Id
required: true
result:
- name: clientVersion
type:
schema: clientVersion
... ...
version: v1
kind: Method
metadata:
name: updateClientVersion
type: command
description: 更新
payload:
- ref: Id
required: true
- name: commiter
description: 提交人
type:
primitive: string
- name: projectName
description: 项目名称
type:
primitive: string
- name: version
description: 版本号
type:
primitive: string
- name: title
description: 标题
type:
primitive: string
- name: remark
description: 其他备注信息
type:
primitive: string
- name: clientPackageInfo
description: 客户端安装包信息
type:
array: clientPackageInfo
result:
- name: clientVersion
type:
schema: clientVersion
... ...
version: v1
kind: Service
metadata:
name: clientVersion
description: 客户端版本服务
... ...
version: v1
kind: Method
metadata:
name: createProjectModule
type: command
description: 创建
payload:
- ref: projectName
required: true
- ref: projectKey
required: true
- ref: description
required: true
- ref: status
required: true
result:
- name: projectModule
type:
schema: projectModule
... ...
version: v1
kind: Method
metadata:
name: getProjectModule
type: query
description: 返回
payload:
- ref: projectModuleId
required: true
result:
- name: projectModule
type:
schema: projectModule
... ...
version: v1
kind: Method
metadata:
name: listProjectModule
type: query
description: 返回列表
payload:
- ref: offset
required: true
- ref: limit
required: true
result:
- ref: count
required: true
- name: projectModule
type:
array: projectModule
... ...
version: v1
kind: Method
metadata:
name: removeProjectModule
type: command
description: 移除
payload:
- ref: projectModuleId
required: true
result:
- name: projectModule
type:
schema: projectModule
... ...
version: v1
kind: Method
metadata:
name: updateProjectModule
type: command
description: 更新
payload:
- ref: projectModuleId
required: true
- ref: projectName
required: true
- ref: projectKey
required: true
- ref: description
required: true
- ref: status
required: true
result:
- name: projectModule
type:
schema: projectModule
... ...
version: v1
kind: Service
metadata:
name: projectModule
description: 项目模块服务
... ...
version: v1
kind: Method
metadata:
name: createProjectModuleFiles
type: command
description: 创建
payload:
- ref: projectModuleId
required: true
- ref: projectModuleVersionId
required: true
- ref: fileType
required: true
- ref: codeBlock
required: true
- ref: ParentId
required: true
- ref: Sort
required: true
- name: remark
type:
primitive: string
description: 备注信息
result:
- name: projectModuleFiles
type:
schema: projectModuleFiles
... ...
version: v1
kind: Method
metadata:
name: getProjectModuleFiles
type: query
description: 返回
payload:
- ref: projectModuleFilesId
required: true
result:
- name: projectModuleFiles
type:
schema: projectModuleFiles
... ...
version: v1
kind: Method
metadata:
name: listProjectModuleFiles
type: query
description: 返回列表
payload:
- ref: offset
required: true
- ref: limit
required: true
result:
- ref: count
required: true
- name: projectModuleFiles
type:
array: projectModuleFiles
... ...
version: v1
kind: Method
metadata:
name: removeProjectModuleFiles
type: command
description: 移除
payload:
- ref: projectModuleFilesId
required: true
result:
- name: projectModuleFiles
type:
schema: projectModuleFiles
... ...
version: v1
kind: Method
metadata:
name: updateProjectModuleFiles
type: command
description: 更新
payload:
- ref: projectModuleFilesId
required: true
- ref: codeBlock
required: true
- name: remark
type:
primitive: string
description: 备注信息
result:
- name: projectModuleFiles
type:
schema: projectModuleFiles
... ...
version: v1
kind: Service
metadata:
name: projectModuleFiles
description: 项目模块文件
... ...
version: v1
kind: Method
metadata:
name: createProjectModuleVersion
type: command
description: 创建
payload:
- ref: projectModuleId
required: true
- name: version
description: 唯一标识
required: true
type:
primitive: int64
- ref: description
required: true
result:
- name: projectModuleVersion
type:
schema: projectModuleVersion
... ...
version: v1
kind: Method
metadata:
name: getProjectModuleVersion
type: query
description: 返回
payload:
- ref: projectModuleVersionId
required: true
result:
- name: projectModuleVersion
type:
schema: projectModuleVersion
... ...