Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
聂康
local-rnr-enterprise
Commits
c997214d
Commit
c997214d
authored
Jun 17, 2025
by
kang.nie@inzymeits.com
Browse files
初始化代码
parent
741c2feb
Pipeline
#3107
failed with stages
in 0 seconds
Changes
265
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/main/resources/font/simhei.ttf
0 → 100644
View file @
c997214d
File added
src/main/resources/font/simkai.ttf
0 → 100644
View file @
c997214d
File added
src/main/resources/font/simsun.ttc
0 → 100644
View file @
c997214d
File added
src/test/java/com/cusc/nirvana/user/rnr/enterprise/SimVehicleRelControllerTest.java
0 → 100644
View file @
c997214d
package
com.cusc.nirvana.user.rnr.enterprise
;
import
com.alibaba.fastjson.JSON
;
import
com.cusc.nirvana.common.result.PageResult
;
import
com.cusc.nirvana.common.result.Response
;
import
com.cusc.nirvana.user.rnr.enterprise.controller.SimVehicleRelController
;
import
com.cusc.nirvana.user.rnr.fp.dto.SimVehicleQueryDTO
;
import
com.cusc.nirvana.user.rnr.fp.dto.SimVehicleResultDTO
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.boot.test.context.SpringBootTest
;
import
org.springframework.test.context.junit4.SpringRunner
;
@SpringBootTest
@RunWith
(
SpringRunner
.
class
)
public
class
SimVehicleRelControllerTest
{
@Autowired
SimVehicleRelController
simVehicleRelController
;
@Test
public
void
querySimVehiclePage
(){
SimVehicleQueryDTO
queryDTO
=
JSON
.
parseObject
(
"{\"organizationId\":\"2022001\",\"iccid\":\"\",\"vin\":\"\",\"currPage\":1,\"pageSize\":20,\"startCreateTime\":1654790400000,\"endCreateTime\":1654876799999}"
,
SimVehicleQueryDTO
.
class
);
Response
<
PageResult
<
SimVehicleResultDTO
>>
pageResultResponse
=
simVehicleRelController
.
querySimVehiclePage
(
queryDTO
);
System
.
out
.
println
(
JSON
.
toJSONString
(
pageResultResponse
));
}
}
src/test/java/com/cusc/nirvana/user/rnr/enterprise/UserTest.java
0 → 100644
View file @
c997214d
package
com.cusc.nirvana.user.rnr.enterprise
;
import
com.alibaba.fastjson.JSONObject
;
import
com.cusc.nirvana.common.result.Response
;
import
com.cusc.nirvana.user.auth.client.CaptchaClient
;
import
com.cusc.nirvana.user.auth.client.LoginClient
;
import
com.cusc.nirvana.user.auth.common.constants.CaptchaTypeEnum
;
import
com.cusc.nirvana.user.auth.identification.dto.*
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.springframework.boot.test.context.SpringBootTest
;
import
org.springframework.test.context.junit4.SpringRunner
;
import
javax.annotation.Resource
;
/**
* @author stayAnd
* @date 2022/4/13
*/
@SpringBootTest
@RunWith
(
SpringRunner
.
class
)
public
class
UserTest
{
@Resource
private
LoginClient
loginClient
;
@Resource
private
CaptchaClient
captchaClient
;
@Test
public
void
testGetCaptchaClient
(){
CaptchaCreateReq
req
=
new
CaptchaCreateReq
();
req
.
setApplicationId
(
"4"
);
req
.
setCaptchaHeight
(
100
);
req
.
setCaptchaWidth
(
400
);
req
.
setCaptchaType
(
CaptchaTypeEnum
.
TYPE_DEFAULT
);
req
.
setCaptchaLength
(
4
);
Response
<
CaptchaCreateResp
>
captchaCreateRespResponse
=
captchaClient
.
simpleGraphic
(
req
);
System
.
out
.
println
(
JSONObject
.
toJSONString
(
captchaCreateRespResponse
));
}
@Test
public
void
testSendSms
(){
MobileLoginReq
req
=
new
MobileLoginReq
();
req
.
setApplicationId
(
"4"
);
req
.
setTenantNo
(
"38"
);
req
.
setCaptchaExpire
(
3600
);
req
.
setPhone
(
"13965036751"
);
req
.
setCheckCaptchaImg
(
true
);
req
.
setCaptchaImage
(
"7rwz"
);
req
.
setRequestId
(
"fdd2ac96-3b3c-48f7-a777-fb44e0cfc9cc"
);
SmsSendConfig
config
=
new
SmsSendConfig
();
config
.
setStrategyCode
(
"verification_code_sync_strategy"
);
config
.
setSmsTemplateCode
(
"verification_code_template_code"
);
req
.
setSmsSendConfig
(
config
);
Response
response
=
loginClient
.
sendSmsCaptcha
(
req
);
System
.
out
.
println
(
JSONObject
.
toJSONString
(
response
));
}
@Test
public
void
testLogin
(){
MobileLoginReq
req
=
new
MobileLoginReq
();
req
.
setApplicationId
(
"4"
);
req
.
setTenantNo
(
"38"
);
req
.
setPhone
(
"13965036751"
);
req
.
setCaptcha
(
"281293"
);
Response
<
Oauth2Token
>
response
=
loginClient
.
mobileLogin
(
req
);
System
.
out
.
println
(
JSONObject
.
toJSONString
(
response
));
}
}
Prev
1
…
10
11
12
13
14
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment