Commit 123402ec authored by 赵啸非's avatar 赵啸非

添加应用serviceApi参数字段

parent af583dd2
......@@ -945,6 +945,7 @@ CREATE TABLE mortals_sys_app(
`appThemeName` varchar(256) COMMENT '应用主题名称',
`type` tinyint(2) DEFAULT '1' COMMENT '类型(1.终端应用,2.移动端应用)',
`url` varchar(255) COMMENT '链接地址',
`serviceApi` varchar(255) COMMENT '服务接口地址',
`downDevCount` int(4) DEFAULT '0' COMMENT '下发设备次数',
`shelves` tinyint(2) DEFAULT '0' COMMENT '是否上架(0.下架,1.上架)',
`appType` tinyint(2) DEFAULT '1' COMMENT '类型(1.应用程序,2.url)',
......
......@@ -9124,41 +9124,44 @@ type|Integer|否|类型(1.终端应用,2.移动端应用)
参数名称| 参数类型 |描述
:---|:--------|:------
code| Integer |结果码(-1.失败,1.成功)
msg| String |消息
data| object |数据对象
 per_page| Integer |每页条数
 total| Integer |总条数
 last_page| Integer |总页数
 current_page| Integer |当前页
 data| array |结果集列表|数组
  id| Long |主键ID,主键,自增长
  siteId| Long |站点Id
  siteName| String |站点名称
  appCode| String |应用编码
  appName| String |应用名称
  appIconPath| String |应用图标
  appThemeName| String |应用主题名称
  type| Integer |类型(1.终端应用,2.移动端应用)
  downDevCount| Integer |下发设备次数
  shelves| Integer |是否上架(1.上架,0.下架)
  filePath| String |文件相对路径地址
  distributeFilePath| String |文件部署路径地址
  version| String |当前版本
  summary| String |简介
  distribute| Integer |是否部署(0.否,1.是)
  dataUpdate| Integer |是否数据更新(0.否,1.是)
  appDatasetList| array |数据结果集
  applianceSiteScope| Integer |适用站点范围数量
  siteIdList| array |适用范围站点列表
  createTime| Date |创建时间
  updateUserId| Long |更新用户
  updateTime| Date |更新时间
dict| object |字典对象
 type| object |字典属性对象,详见附录
 shelves| object |字典属性对象,详见附录
 distribute| object |字典属性对象,详见附录
 dateUpdate| object |字典属性对象,详见附录
code|Integer|结果码(-1.失败,1.成功)
msg|String|消息
data|object|数据对象
 per_page|Integer|每页条数
 total|Integer|总条数
 last_page|Integer|总页数
 current_page|Integer|当前页
 data|array|结果集列表|数组
  id|Long|主键ID,主键,自增长
  siteId|Long|站点Id
  siteName|String|站点名称
  appCode|String|应用编码
  appName|String|应用名称
  appIconPath|String|应用图标
  appThemeName|String|应用主题名称
  type|Integer|类型(1.终端应用,2.移动端应用)
  url|String|链接地址
  downDevCount|Integer|下发设备次数
  shelves|Integer|是否上架(0.下架,1.上架)
  appType|Integer|类型(1.应用程序,2.url)
  fileName|String|文件名称
  filePath|String|文件相对路径地址
  distributeFilePath|String|文件部署路径地址
  version|Integer|当前版本
  summary|String|简介
  notes|String|更新说明
  distribute|Integer|是否部署(0.否,1.是)
  dataUpdate|Integer|是否数据更新(0.否,1.是)
  createTime|Date|创建时间
  updateUserId|Long|更新用户
  updateTime|Date|更新时间
  serviceApi|String|服务接口地址
dict|object|字典对象
 type|object|字典属性对象,详见附录
 shelves|object|字典属性对象,详见附录
 appType|object|字典属性对象,详见附录
 distribute|object|字典属性对象,详见附录
 dataUpdate|object|字典属性对象,详见附录
**响应消息样例:**
......@@ -9207,22 +9210,28 @@ data|object|数据对象
 appIconPath|String|应用图标
 appThemeName|String|应用主题名称
 type|Integer|类型(1.终端应用,2.移动端应用)
 url|String|链接地址
 downDevCount|Integer|下发设备次数
 shelves|Integer|是否上架(1.上架,0.下架)
 shelves|Integer|是否上架(0.下架,1.上架)
 appType|Integer|类型(1.应用程序,2.url)
 fileName|String|文件名称
 filePath|String|文件相对路径地址
 distributeFilePath|String|文件部署路径地址
 version|String|当前版本
 version|Integer|当前版本
 summary|String|简介
 notes|String|更新说明
 distribute|Integer|是否部署(0.否,1.是)
 dateUpdate|Integer|是否数据更新(0.否,1.是)
 dataUpdate|Integer|是否数据更新(0.否,1.是)
 createTime|Date|创建时间
 updateUserId|Long|更新用户
 updateTime|Date|更新时间
 serviceApi|String|服务接口地址
dict|object|字典对象
 type|object|字典属性对象,详见附录
 shelves|object|字典属性对象,详见附录
 appType|object|字典属性对象,详见附录
 distribute|object|字典属性对象,详见附录
 dateUpdate|object|字典属性对象,详见附录
 dataUpdate|object|字典属性对象,详见附录
**响应消息样例:**
......@@ -9274,11 +9283,19 @@ appName|String|否|应用名称
appIconPath|String|否|应用图标
appThemeName|String|否|应用主题名称
type|Integer|否|类型(1.终端应用,2.移动端应用)
appType|Integer|否|类型(1.应用程序,2.url)
url|String|否|链接地址
downDevCount|Integer|否|下发设备次数
shelves|Integer|否|是否上架(0.下架,1.上架)
appType|Integer|否|类型(1.应用程序,2.url)
fileName|String|否|文件名称
filePath|String|否|文件相对路径地址
distributeFilePath|String|否|文件部署路径地址
version|Integer|否|当前版本
summary|String|否|简介
notes|String|否|更新说明
distribute|Integer|否|是否部署(0.否,1.是)
dataUpdate|Integer|否|是否数据更新(0.否,1.是)
serviceApi|String|否|服务接口地址
**请求样例:**
......
......@@ -11,7 +11,7 @@ import com.mortals.xhx.module.app.model.AppDatasetEntity;
* 自助终端应用实体对象
*
* @author zxfei
* @date 2022-12-14
* @date 2023-01-07
*/
public class AppEntity extends AppVo {
......@@ -93,6 +93,10 @@ public class AppEntity extends AppVo {
* 是否数据更新(0.否,1.是)
*/
private Integer dataUpdate;
/**
* 服务接口地址
*/
private String serviceApi;
/**
* 自助终端应用数据集信息
......@@ -367,6 +371,20 @@ public class AppEntity extends AppVo {
public void setDataUpdate(Integer dataUpdate){
this.dataUpdate = dataUpdate;
}
/**
* 获取 服务接口地址
* @return String
*/
public String getServiceApi(){
return serviceApi;
}
/**
* 设置 服务接口地址
* @param serviceApi
*/
public void setServiceApi(String serviceApi){
this.serviceApi = serviceApi;
}
public List<AppDatasetEntity> getAppDatasetList(){
......@@ -415,6 +433,7 @@ public class AppEntity extends AppVo {
sb.append(",notes:").append(getNotes());
sb.append(",distribute:").append(getDistribute());
sb.append(",dataUpdate:").append(getDataUpdate());
sb.append(",serviceApi:").append(getServiceApi());
return sb.toString();
}
......@@ -457,5 +476,7 @@ public class AppEntity extends AppVo {
this.distribute = 0;
this.dataUpdate = 0;
this.serviceApi = "";
}
}
\ No newline at end of file
......@@ -7,7 +7,7 @@ import com.mortals.xhx.module.app.model.AppEntity;
* 自助终端应用查询对象
*
* @author zxfei
* @date 2022-12-14
* @date 2023-01-07
*/
public class AppQuery extends AppEntity {
/** 开始 主键ID,主键,自增长 */
......@@ -175,6 +175,9 @@ public class AppQuery extends AppEntity {
/** 结束 更新时间 */
private String updateTimeEnd;
/** 服务接口地址 */
private List<String> serviceApiList;
/** OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4) */
private List<AppQuery> orConditionList;
......@@ -1052,6 +1055,21 @@ public class AppQuery extends AppEntity {
this.updateTimeEnd = updateTimeEnd;
}
/**
* 获取 服务接口地址
* @return serviceApiList
*/
public List<String> getServiceApiList(){
return this.serviceApiList;
}
/**
* 设置 服务接口地址
* @param serviceApiList
*/
public void setServiceApiList(List<String> serviceApiList){
this.serviceApiList = serviceApiList;
}
/**
* 设置 主键ID,主键,自增长
* @param id
......@@ -1713,6 +1731,25 @@ public class AppQuery extends AppEntity {
}
/**
* 设置 服务接口地址
* @param serviceApi
*/
public AppQuery serviceApi(String serviceApi){
setServiceApi(serviceApi);
return this;
}
/**
* 设置 服务接口地址
* @param serviceApiList
*/
public AppQuery serviceApiList(List<String> serviceApiList){
this.serviceApiList = serviceApiList;
return this;
}
/**
* 获取 OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4)
* @return orConditionList
......
......@@ -302,6 +302,7 @@ setup_rabbitmq() {
systemctl daemon-reload
systemctl start rabbitmq-server
rabbitmq-plugins enable rabbitmq_management
rabbitmq-plugins enable rabbitmq_web_stomp rabbitmq_web_stomp_examples
rabbitmqctl add_user ${RABBITMQ_USER} ${RABBITMQ_PASSWORD} # 添加用户
rabbitmqctl set_user_tags ${RABBITMQ_USER} administrator # 设置用户角色,分配操作权限
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment