service/app/mix/controller/fill_media_test.go

21 lines
294 B
Go
Raw Permalink Normal View History

2023-12-21 22:17:40 +08:00
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))
}