mirror of
https://shylinux.com/x/operation
synced 2025-07-01 21:21:19 +08:00
add some
This commit is contained in:
parent
71cfb398c8
commit
8f1ac6b896
@ -5,6 +5,7 @@ import "shylinux.com/x/mysql-story/src/db"
|
|||||||
const (
|
const (
|
||||||
UID = "uid"
|
UID = "uid"
|
||||||
NAME = "name"
|
NAME = "name"
|
||||||
|
INFO = "info"
|
||||||
TYPE = "type"
|
TYPE = "type"
|
||||||
TITLE = "title"
|
TITLE = "title"
|
||||||
CONTENT = "content"
|
CONTENT = "content"
|
||||||
|
@ -7,7 +7,7 @@ import (
|
|||||||
|
|
||||||
type Portal struct {
|
type Portal struct {
|
||||||
operation.Portal
|
operation.Portal
|
||||||
placeCreate string `name:"placeCreate city_name* company_name* dashboard_name* dashboard_type*:select" role:"void"`
|
placeCreate string `name:"placeCreate city_name* company_name* dashboard_name* dashboard_type:select" role:"void"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
@ -5,6 +5,7 @@ import "shylinux.com/x/mysql-story/src/db"
|
|||||||
const (
|
const (
|
||||||
UID = "uid"
|
UID = "uid"
|
||||||
NAME = "name"
|
NAME = "name"
|
||||||
|
INFO = "info"
|
||||||
TYPE = "type"
|
TYPE = "type"
|
||||||
TITLE = "title"
|
TITLE = "title"
|
||||||
CONTENT = "content"
|
CONTENT = "content"
|
||||||
@ -14,8 +15,6 @@ const (
|
|||||||
REPOS_NAME = "repos_name"
|
REPOS_NAME = "repos_name"
|
||||||
REPOS_TYPE = "repos_type"
|
REPOS_TYPE = "repos_type"
|
||||||
VERSION_UID = "version_uid"
|
VERSION_UID = "version_uid"
|
||||||
COMPANY_UID = "company_uid"
|
|
||||||
CITY_UID = "city_uid"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type UserRepos struct {
|
type UserRepos struct {
|
||||||
|
@ -7,7 +7,7 @@ import (
|
|||||||
|
|
||||||
type Portal struct {
|
type Portal struct {
|
||||||
operation.Portal
|
operation.Portal
|
||||||
placeCreate string `name:"placeCreate city_name* company_name* repos_name* repos_type*:select" role:"void"`
|
placeCreate string `name:"placeCreate city_name* company_name* repos_name* repos_type:select" role:"void"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() { gonganxitong.PortalCmd(Portal{Portal: operation.NewPortal(userRepos{}, repos{})}) }
|
func init() { gonganxitong.PortalCmd(Portal{Portal: operation.NewPortal(userRepos{}, repos{})}) }
|
||||||
|
@ -23,8 +23,8 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"repos_type": {
|
"repos_type": {
|
||||||
"local": "本地库",
|
"system": "系统库",
|
||||||
"remote": "远程库"
|
"github": "Github"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -9,13 +9,13 @@ func init() { ice.TeamCtxCmd(repos{}) }
|
|||||||
type ReposType int
|
type ReposType int
|
||||||
|
|
||||||
const (
|
const (
|
||||||
ReposLocal ReposType = iota
|
ReposSystem ReposType = iota
|
||||||
ReposRemote
|
ReposGithub
|
||||||
)
|
)
|
||||||
|
|
||||||
var ReposTypeList = map[ReposType]string{
|
var ReposTypeList = map[ReposType]string{
|
||||||
ReposLocal: "local",
|
ReposSystem: "system",
|
||||||
ReposRemote: "remote",
|
ReposGithub: "github",
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s ReposType) String() string { return ReposTypeList[s] }
|
func (s ReposType) String() string { return ReposTypeList[s] }
|
||||||
|
@ -10,14 +10,12 @@ type CloudType int
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
CloudSystem CloudType = iota
|
CloudSystem CloudType = iota
|
||||||
CloudLocal
|
|
||||||
CloudAliyun
|
CloudAliyun
|
||||||
CloudTencent
|
CloudTencent
|
||||||
)
|
)
|
||||||
|
|
||||||
var CloudTypeList = map[CloudType]string{
|
var CloudTypeList = map[CloudType]string{
|
||||||
CloudSystem: "system",
|
CloudSystem: "system",
|
||||||
CloudLocal: "local",
|
|
||||||
CloudAliyun: "aliyun",
|
CloudAliyun: "aliyun",
|
||||||
CloudTencent: "tencent",
|
CloudTencent: "tencent",
|
||||||
}
|
}
|
||||||
|
@ -5,17 +5,15 @@ import "shylinux.com/x/mysql-story/src/db"
|
|||||||
const (
|
const (
|
||||||
UID = "uid"
|
UID = "uid"
|
||||||
NAME = "name"
|
NAME = "name"
|
||||||
|
INFO = "info"
|
||||||
TYPE = "type"
|
TYPE = "type"
|
||||||
TITLE = "title"
|
TITLE = "title"
|
||||||
CONTENT = "content"
|
CONTENT = "content"
|
||||||
USER_UID = "user_uid"
|
USER_UID = "user_uid"
|
||||||
USER_CLOUD_ROLE = "user_cloud_role"
|
USER_CLOUD_ROLE = "user_cloud_role"
|
||||||
CLOUD_UID = "cloud_uid"
|
CLOUD_UID = "cloud_uid"
|
||||||
CLOUD_NAME = "cloud_name"
|
|
||||||
CLOUD_TYPE = "cloud_type"
|
CLOUD_TYPE = "cloud_type"
|
||||||
RELEASE_UID = "release_uid"
|
RELEASE_UID = "release_uid"
|
||||||
COMPANY_UID = "company_uid"
|
|
||||||
CITY_UID = "city_uid"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type UserCloud struct {
|
type UserCloud struct {
|
||||||
|
@ -7,7 +7,7 @@ import (
|
|||||||
|
|
||||||
type Portal struct {
|
type Portal struct {
|
||||||
guanlixitong.Portal
|
guanlixitong.Portal
|
||||||
placeCreate string `name:"placeCreate city_name* company_name* cloud_name* cloud_type*:select" role:"void"`
|
placeCreate string `name:"placeCreate city_name* company_name* cloud_name* cloud_type:select" role:"void"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() { gonganxitong.PortalCmd(Portal{Portal: guanlixitong.NewPortal(userCloud{}, cloud{})}) }
|
func init() { gonganxitong.PortalCmd(Portal{Portal: guanlixitong.NewPortal(userCloud{}, cloud{})}) }
|
||||||
|
@ -24,7 +24,6 @@
|
|||||||
},
|
},
|
||||||
"cloud_type": {
|
"cloud_type": {
|
||||||
"system": "系统云",
|
"system": "系统云",
|
||||||
"local": "本地云",
|
|
||||||
"aliyun": "阿里云",
|
"aliyun": "阿里云",
|
||||||
"tencent": "腾讯云"
|
"tencent": "腾讯云"
|
||||||
}
|
}
|
||||||
|
@ -3,10 +3,7 @@ Volcanos(chat.ONIMPORT, {
|
|||||||
can.onimport.myView(can, msg, function(value) { return [
|
can.onimport.myView(can, msg, function(value) { return [
|
||||||
{view: html.TITLE, list: [value.title, can.onimport.textView(can, value), can.onimport.titleAction(can, value)]},
|
{view: html.TITLE, list: [value.title, can.onimport.textView(can, value), can.onimport.titleAction(can, value)]},
|
||||||
{view: html.STATUS, list: [value.uid.slice(0, 6), can.onimport.timeView(can, value), value.user_name]},
|
{view: html.STATUS, list: [value.uid.slice(0, 6), can.onimport.timeView(can, value), value.user_name]},
|
||||||
{view: html.STATUS, list: [
|
{view: html.STATUS, list: [can.base.TimeTrim(value.process_time), "~", can.base.TimeTrim(value.finish_time), "计划:", value.plan_title]},
|
||||||
can.base.TimeTrim(value.process_time), "~", can.base.TimeTrim(value.finish_time),
|
|
||||||
"计划:", value.plan_title,
|
|
||||||
]},
|
|
||||||
{view: html.OUTPUT, list: [value.content]},
|
{view: html.OUTPUT, list: [value.content]},
|
||||||
] })
|
] })
|
||||||
},
|
},
|
||||||
|
@ -5,6 +5,7 @@ import "shylinux.com/x/mysql-story/src/db"
|
|||||||
const (
|
const (
|
||||||
UID = "uid"
|
UID = "uid"
|
||||||
NAME = "name"
|
NAME = "name"
|
||||||
|
INFO = "info"
|
||||||
TYPE = "type"
|
TYPE = "type"
|
||||||
LEVEL = "level"
|
LEVEL = "level"
|
||||||
STATUS = "status"
|
STATUS = "status"
|
||||||
@ -27,8 +28,6 @@ const (
|
|||||||
TASK_UID = "task_uid"
|
TASK_UID = "task_uid"
|
||||||
TASK_STATUS = "task_status"
|
TASK_STATUS = "task_status"
|
||||||
CASE_STATUS = "case_status"
|
CASE_STATUS = "case_status"
|
||||||
COMPANY_UID = "company_uid"
|
|
||||||
CITY_UID = "city_uid"
|
|
||||||
MARKET_UID = "market_uid"
|
MARKET_UID = "market_uid"
|
||||||
BEGIN_TIME = "begin_time"
|
BEGIN_TIME = "begin_time"
|
||||||
END_TIME = "end_time"
|
END_TIME = "end_time"
|
||||||
|
@ -10,7 +10,7 @@ import (
|
|||||||
|
|
||||||
type Portal struct {
|
type Portal struct {
|
||||||
guanlixitong.Portal
|
guanlixitong.Portal
|
||||||
placeCreate string `name:"placeCreate city_name* company_name* story_name* story_type*:select" role:"void"`
|
placeCreate string `name:"placeCreate city_name* company_name* story_name* story_type:select" role:"void"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s Portal) AfterPlaceAuth(m *ice.Message, arg ...string) {
|
func (s Portal) AfterPlaceAuth(m *ice.Message, arg ...string) {
|
||||||
|
@ -3,10 +3,7 @@ Volcanos(chat.ONIMPORT, {
|
|||||||
can.onimport.myView(can, msg, function(value) { return [
|
can.onimport.myView(can, msg, function(value) { return [
|
||||||
{view: html.TITLE, list: [value.title, can.onimport.textView(can, value), can.onimport.titleAction(can, value)]},
|
{view: html.TITLE, list: [value.title, can.onimport.textView(can, value), can.onimport.titleAction(can, value)]},
|
||||||
{view: html.STATUS, list: [value.uid.slice(0, 6), can.onimport.timeView(can, value), value.user_name]},
|
{view: html.STATUS, list: [value.uid.slice(0, 6), can.onimport.timeView(can, value), value.user_name]},
|
||||||
{view: html.STATUS, list: [
|
{view: html.STATUS, list: [can.base.TimeTrim(value.process_time), "~", can.base.TimeTrim(value.finish_time), "计划:", value.plan_title, "用例:", value.case_count+" 个"]},
|
||||||
can.base.TimeTrim(value.process_time), "~", can.base.TimeTrim(value.finish_time),
|
|
||||||
"计划:", value.plan_title, "用例:", value.case_count+" 个",
|
|
||||||
]},
|
|
||||||
{view: html.OUTPUT, list: [value.content]},
|
{view: html.OUTPUT, list: [value.content]},
|
||||||
] })
|
] })
|
||||||
},
|
},
|
||||||
|
@ -12,6 +12,4 @@ func init() { ice.TeamCtxCmd(userStory{}) }
|
|||||||
|
|
||||||
type UserStoryRole = operation.UserCloudRole
|
type UserStoryRole = operation.UserCloudRole
|
||||||
|
|
||||||
var UserStoryCreator = operation.UserCloudCreator
|
|
||||||
var UserStoryLeader = operation.UserCloudLeader
|
|
||||||
var UserStoryRoleList = operation.UserCloudRoleList
|
var UserStoryRoleList = operation.UserCloudRoleList
|
||||||
|
@ -5,7 +5,6 @@ import (
|
|||||||
|
|
||||||
"shylinux.com/x/ice"
|
"shylinux.com/x/ice"
|
||||||
"shylinux.com/x/icebergs/base/cli"
|
"shylinux.com/x/icebergs/base/cli"
|
||||||
"shylinux.com/x/icebergs/base/web"
|
|
||||||
kit "shylinux.com/x/toolkits"
|
kit "shylinux.com/x/toolkits"
|
||||||
|
|
||||||
"shylinux.com/x/operation/src/storage/model"
|
"shylinux.com/x/operation/src/storage/model"
|
||||||
@ -24,12 +23,11 @@ type file struct {
|
|||||||
func (s file) Upload(m *ice.Message, arg ...string) {
|
func (s file) Upload(m *ice.Message, arg ...string) {
|
||||||
up := kit.Simple(m.Optionv(ice.MSG_UPLOAD))
|
up := kit.Simple(m.Optionv(ice.MSG_UPLOAD))
|
||||||
p := s.path(m, m.Option(model.STORAGE_UID), up[1])
|
p := s.path(m, m.Option(model.STORAGE_UID), up[1])
|
||||||
m.Cmdy(web.CACHE, web.WATCH, up[0], p)
|
s.ValueCreate(m, model.TITLE, m.UploadSave(p), model.CONTENT, "", model.TYPE, kit.Format(FilePath), model.SIZE, up[2])
|
||||||
s.ValueCreate(m, model.TITLE, up[1], model.CONTENT, "", model.TYPE, kit.Format(FilePath), model.SIZE, up[2])
|
|
||||||
s.DashboardUpdate(m)
|
s.DashboardUpdate(m)
|
||||||
}
|
}
|
||||||
func (s file) Right(m *ice.Message, arg ...string) {
|
func (s file) Right(m *ice.Message, arg ...string) {
|
||||||
msg := m.Cmd(s.Prefix(m, Portal{}), Portal{}.PlaceList, m.Option(model.USER_UID), arg[0])
|
msg := m.Cmd(s.PrefixPortal(m), Portal{}.PlaceList, m.Option(model.USER_UID), arg[0])
|
||||||
m.WarnNotRight(kit.Int(msg.Append(model.USER_STORAGE_ROLE)) == 0)
|
m.WarnNotRight(kit.Int(msg.Append(model.USER_STORAGE_ROLE)) == 0)
|
||||||
}
|
}
|
||||||
func (s file) List(m *ice.Message, arg ...string) {
|
func (s file) List(m *ice.Message, arg ...string) {
|
||||||
|
@ -5,6 +5,7 @@ import "shylinux.com/x/mysql-story/src/db"
|
|||||||
const (
|
const (
|
||||||
UID = "uid"
|
UID = "uid"
|
||||||
NAME = "name"
|
NAME = "name"
|
||||||
|
INFO = "info"
|
||||||
TYPE = "type"
|
TYPE = "type"
|
||||||
TITLE = "title"
|
TITLE = "title"
|
||||||
CONTENT = "content"
|
CONTENT = "content"
|
||||||
@ -15,8 +16,6 @@ const (
|
|||||||
STORAGE_TYPE = "storage_type"
|
STORAGE_TYPE = "storage_type"
|
||||||
FILE_UID = "file_uid"
|
FILE_UID = "file_uid"
|
||||||
FILE_TYPE = "file_type"
|
FILE_TYPE = "file_type"
|
||||||
COMPANY_UID = "company_uid"
|
|
||||||
CITY_UID = "city_uid"
|
|
||||||
SIZE = "size"
|
SIZE = "size"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ import (
|
|||||||
|
|
||||||
type Portal struct {
|
type Portal struct {
|
||||||
guanlixitong.Portal
|
guanlixitong.Portal
|
||||||
placeCreate string `name:"placeCreate city_name* company_name* storage_name* storage_type*:select" role:"void"`
|
placeCreate string `name:"placeCreate city_name* company_name* storage_name* storage_type:select" role:"void"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s Portal) AfterPlaceAuth(m *ice.Message, arg ...string) {
|
func (s Portal) AfterPlaceAuth(m *ice.Message, arg ...string) {
|
||||||
|
@ -25,7 +25,6 @@
|
|||||||
},
|
},
|
||||||
"storage_type": {
|
"storage_type": {
|
||||||
"system": "系统文件",
|
"system": "系统文件",
|
||||||
"local": "本地文件",
|
|
||||||
"baidu": "百度网盘",
|
"baidu": "百度网盘",
|
||||||
"aliyun": "阿里云盘"
|
"aliyun": "阿里云盘"
|
||||||
}
|
}
|
||||||
|
@ -10,14 +10,12 @@ type StorageType int
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
StorageSystem StorageType = iota
|
StorageSystem StorageType = iota
|
||||||
StorageLocal
|
|
||||||
StorageBaidu
|
StorageBaidu
|
||||||
StorageAliyun
|
StorageAliyun
|
||||||
)
|
)
|
||||||
|
|
||||||
var StorageTypeList = map[StorageType]string{
|
var StorageTypeList = map[StorageType]string{
|
||||||
StorageSystem: "system",
|
StorageSystem: "system",
|
||||||
StorageLocal: "local",
|
|
||||||
StorageBaidu: "baidu",
|
StorageBaidu: "baidu",
|
||||||
StorageAliyun: "aliyun",
|
StorageAliyun: "aliyun",
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user