25 lines
628 B
Java
25 lines
628 B
Java
|
|
package com.cdzy.staff;
|
||
|
|
|
||
|
|
import com.cdzy.common.utils.SHA256WithSaltUtil;
|
||
|
|
import com.cdzy.staff.mapper.EbikeRoleMapper;
|
||
|
|
import com.cdzy.staff.model.entity.EbikeRole;
|
||
|
|
import jakarta.annotation.Resource;
|
||
|
|
import org.junit.jupiter.api.Test;
|
||
|
|
import org.springframework.boot.test.context.SpringBootTest;
|
||
|
|
|
||
|
|
@SpringBootTest(classes = EbikeStaffApplication.class)
|
||
|
|
public class RoleTest {
|
||
|
|
|
||
|
|
@Resource
|
||
|
|
EbikeRoleMapper roleMapper;
|
||
|
|
|
||
|
|
@Test
|
||
|
|
public void test() {
|
||
|
|
EbikeRole role = new EbikeRole();
|
||
|
|
role.setRoleName("role");
|
||
|
|
role.setOperatorId(311460622768435200L);
|
||
|
|
roleMapper.insert(role);
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|