rpc_test.go 686 Bytes
package test

import (
	"fmt"
	"git.hilo.cn/hilo-common/_const/enum/timezone_e"
	"git.hilo.cn/hilo-common/domain"
	"git.hilo.cn/hilo-common/resource/mysql"
	"git.hilo.cn/hilo-common/rpc"
	"testing"
)

func TestMGetGroupPower(t *testing.T) {
	res, err := rpc.MGetGroupPower(domain.CreateModelNil(), []mysql.ID{250, 251})
	println(res, err)
}

func TestMGetUserOnMic(t *testing.T) {
	res, err := rpc.MGetUserOnMic(domain.CreateModelNil(), "2023-04-11", []mysql.ID{4556, 4549}, timezone_e.TimezoneKSA)
	fmt.Printf("%+v,err:%v", res, err)
}

func TestGetUserCpEntryEffect(t *testing.T) {
	res, err := rpc.GetUserCpEntryEffect(domain.CreateModelNil(), 7642)
	fmt.Printf("%v-%v", res, err)
}