cp_test.go 397 Bytes
Newer Older
hujiebin's avatar
hujiebin committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
package test

import (
	"git.hilo.cn/hilo-common/domain"
	"hilo-user/domain/model/cp_m"
	"testing"
)

func TestInitCpAnniversary(t *testing.T) {
	err := cp_m.InitCpAnniversary(domain.CreateModelNil(), cp_m.CpRelation{
		Id:      1,
		UserId1: 7642,
		UserId2: 4549,
	}, "ar")
	println(err)
}
hujiebin's avatar
hujiebin committed
17 18 19 20 21

func TestCalcNextAnniversary(t *testing.T) {
	t2 := cp_m.CalcNextAnniversary(1686211996)
	println(t2)
}