mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-12-25 17:16:33 +08:00
feat: sql解析器替换、工单统一由‘我的流程’发起、流程定义支持自定义条件触发审批、资源隐藏编号、model支持物理删除等
This commit is contained in:
@@ -87,6 +87,15 @@ func (m *Machine) Machines(rc *req.Ctx) {
|
||||
rc.ResData = res
|
||||
}
|
||||
|
||||
func (m *Machine) SimpleMachieInfo(rc *req.Ctx) {
|
||||
machineCodesStr := rc.Query("codes")
|
||||
biz.NotEmpty(machineCodesStr, "codes不能为空")
|
||||
|
||||
var vos []vo.SimpleMachineVO
|
||||
m.MachineApp.ListByCondToAny(model.NewCond().In("code", strings.Split(machineCodesStr, ",")), &vos)
|
||||
rc.ResData = vos
|
||||
}
|
||||
|
||||
func (m *Machine) MachineStats(rc *req.Ctx) {
|
||||
cli, err := m.MachineApp.GetCli(GetMachineId(rc))
|
||||
biz.ErrIsNilAppendErr(err, "获取客户端连接失败: %s")
|
||||
|
||||
Reference in New Issue
Block a user