21 lines
294 B
Go
21 lines
294 B
Go
|
package controller
|
||
|
|
||
|
import (
|
||
|
"service/bizcommon/util"
|
||
|
"service/dbstruct"
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func TestFillMedia(t *testing.T) {
|
||
|
list := []*dbstruct.Product{
|
||
|
{
|
||
|
ImageIds: []int64{0, 1},
|
||
|
VideoIds: []int64{0, 1},
|
||
|
},
|
||
|
}
|
||
|
t.Log(util.ToJson(list))
|
||
|
FillMedia(list)
|
||
|
|
||
|
t.Log(util.ToJson(list))
|
||
|
}
|