Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
SiEn
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hewei
SiEn
Commits
593d7d1a
Commit
593d7d1a
authored
Oct 19, 2020
by
giaogiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化 包机标题
parent
7b6c7903
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
52 additions
and
46 deletions
+52
-46
api-merchant/src/main/java/com/jumeirah/api/merchant/controller/MerchantSmsController.java
+45
-45
common/src/main/java/com/jumeirah/common/entity/CharterIntroduction.java
+3
-0
common/src/main/java/com/jumeirah/common/vo/CharterIntroductionQueryForAppVo.java
+3
-0
common/src/main/resources/mapper/CharterIntroductionMapper.xml
+1
-1
No files found.
api-merchant/src/main/java/com/jumeirah/api/merchant/controller/MerchantSmsController.java
View file @
593d7d1a
package
com
.
jumeirah
.
api
.
merchant
.
controller
;
import
com.jumeirah.common.service.impl.MerchantSmsService
;
import
io.geekidea.springbootplus.framework.common.api.ApiResult
;
import
io.geekidea.springbootplus.framework.common.controller.BaseController
;
import
io.geekidea.springbootplus.framework.log.annotation.OperationLog
;
import
io.geekidea.springbootplus.framework.log.enums.OperationLogType
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
/**
* APP用户 控制器
*
* @author wei
* @since 2020-09-23
*/
@Slf4j
@RestController
//@Module("api-app")
@Api
(
value
=
"短信验证码"
,
tags
=
{
"APP短信验证码相关"
},
hidden
=
true
)
@RequestMapping
(
"/merchant/sms/"
)
public
class
MerchantSmsController
extends
BaseController
{
@Autowired
private
MerchantSmsService
merchantSmsService
;
/**
* 获取注册验证码
*/
@GetMapping
(
"/registerCode"
)
@OperationLog
(
name
=
"获取注册或登陆的验证码"
,
type
=
OperationLogType
.
INFO
)
@ApiOperation
(
value
=
"获取注册或登陆的验证码"
,
response
=
Object
.
class
,
notes
=
"本地环境默认666666"
)
public
ApiResult
<
Object
>
registerOrLoginCode
(
@RequestParam
String
phoneArea
,
@RequestParam
String
phone
)
throws
Exception
{
return
merchantSmsService
.
registerCode
(
phoneArea
,
phone
);
}
}
//
package com.jumeirah.api.merchant.controller;
//
//
import com.jumeirah.common.service.impl.MerchantSmsService;
//
import io.geekidea.springbootplus.framework.common.api.ApiResult;
//
import io.geekidea.springbootplus.framework.common.controller.BaseController;
//
import io.geekidea.springbootplus.framework.log.annotation.OperationLog;
//
import io.geekidea.springbootplus.framework.log.enums.OperationLogType;
//
import io.swagger.annotations.Api;
//
import io.swagger.annotations.ApiOperation;
//
import lombok.extern.slf4j.Slf4j;
//
import org.springframework.beans.factory.annotation.Autowired;
//
import org.springframework.web.bind.annotation.GetMapping;
//
import org.springframework.web.bind.annotation.RequestMapping;
//
import org.springframework.web.bind.annotation.RequestParam;
//
import org.springframework.web.bind.annotation.RestController;
//
/
//
**
//
* APP用户 控制器
//
*
//
* @author wei
//
* @since 2020-09-23
//
*/
//
@Slf4j
//
@RestController
//
//
@Module("api-app")
//
@Api(value = "短信验证码", tags = {"APP短信验证码相关"},hidden = true)
//
@RequestMapping("/merchant/sms/")
//
public class MerchantSmsController extends BaseController {
//
//
@Autowired
//
private MerchantSmsService merchantSmsService;
//
//
/**
//
* 获取注册验证码
//
*/
//
@GetMapping("/registerCode")
//
@OperationLog(name = "获取注册或登陆的验证码", type = OperationLogType.INFO)
//
@ApiOperation(value = "获取注册或登陆的验证码", response = Object.class, notes = "本地环境默认666666")
//
public ApiResult<Object> registerOrLoginCode(@RequestParam String phoneArea, @RequestParam String phone) throws Exception {
//
//
return merchantSmsService.registerCode(phoneArea, phone);
//
}
//
//
}
//
common/src/main/java/com/jumeirah/common/entity/CharterIntroduction.java
View file @
593d7d1a
...
...
@@ -50,6 +50,9 @@ public class CharterIntroduction extends BaseEntity {
@ApiModelProperty
(
"包机文字"
)
private
String
text
;
@ApiModelProperty
(
"包机标题"
)
private
String
title
;
@ApiModelProperty
(
"类型 1私人;2团体;3货运;4医疗"
)
private
Integer
type
;
...
...
common/src/main/java/com/jumeirah/common/vo/CharterIntroductionQueryForAppVo.java
View file @
593d7d1a
...
...
@@ -31,6 +31,9 @@ public class CharterIntroductionQueryForAppVo implements Serializable {
@ApiModelProperty
(
"包机文字"
)
private
String
text
;
@ApiModelProperty
(
"包机标题"
)
private
String
title
;
@ApiModelProperty
(
"图片高"
)
private
Integer
imageListHeight
;
@ApiModelProperty
(
"图片宽"
)
...
...
common/src/main/resources/mapper/CharterIntroductionMapper.xml
View file @
593d7d1a
...
...
@@ -7,7 +7,7 @@
id, mc_id, status, create_time, update_time,type,text,img_url,image_list_height,image_list_width
</sql>
<sql
id=
"Base_Column_ListForApp"
>
text,img_url,ci.image_list_height,ci.image_list_width,m.head AS mcHead,m.name AS mcName
t
itle,t
ext,img_url,ci.image_list_height,ci.image_list_width,m.head AS mcHead,m.name AS mcName
</sql>
<select
id=
"getCharterIntroductionById"
resultType=
"com.jumeirah.common.vo.CharterIntroductionQueryVo"
>
...
...
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