mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-14 13:20:25 +08:00
feat: dbms新增支持工单流程审批
This commit is contained in:
@@ -11,10 +11,10 @@ import (
|
||||
)
|
||||
|
||||
type Src struct {
|
||||
Id *int64 `json:"id"`
|
||||
Id int64 `json:"id"`
|
||||
Username string `json:"username"`
|
||||
CreateTime time.Time `json:"time"`
|
||||
UpdateTime time.Time
|
||||
UpdateTime *time.Time
|
||||
Inner *SrcInner
|
||||
}
|
||||
|
||||
@@ -194,3 +194,12 @@ func TestTemplateResolve(t *testing.T) {
|
||||
fmt.Println(resolve)
|
||||
|
||||
}
|
||||
|
||||
func TestToMap(t *testing.T) {
|
||||
mapRes := ToMap(&Src{
|
||||
Id: 0,
|
||||
Username: "哈哈哈",
|
||||
CreateTime: time.Now(),
|
||||
})
|
||||
fmt.Println(mapRes)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user