shopsVersionUpdate.md 5.87 KB

上传APP包

接口名: /AppVersionRest/setAppVersion

方法

POST JSONRAW

入参


属性名称 类型 例子 说明 是否必填 长度限制
appVersion String 4.4.0 app版本 1~11
clientType String iphone,android,ipad 安装包类型 1~11
url String 上传的url地址 1~500
content String 备注 1~500
status String 状态('0 关闭 1 开启',) 1~10

对应SQL的操作库表

insert into app_version_information (id, version, client_type, 
      content, url, status, 
      create_time, update_time)
    values (#{id,jdbcType=SMALLINT}, #{version,jdbcType=VARCHAR}, #{clientType,jdbcType=VARCHAR}, 
      #{content,jdbcType=VARCHAR}, #{url,jdbcType=VARCHAR}, #{status,jdbcType=TINYINT}, 
      #{createTime,jdbcType=INTEGER}, #{updateTime,jdbcType=INTEGER})

响应码


响应码code 消息 说明
200 操作成功.

返回

{
  "alg": "SALT_MD5",
  "code": 200,
  "data": {
    "code": 200,
    "message": "创建成功"
  },
  "md5": "2ec27613a0ad9e7601d1f764a8c97eae",
  "message": "操作成功"
}

APP版本列表

接口名: /AppVersionRest/getAppVersionList

方法

POST JSONRAW

入参


属性名称 类型 例子 说明 是否必填 长度限制
appVersion String 4.4.0 app版本 1~11
clientType String iphone,android,ipad 安装包类型 1~11
page Integer 当前的页码 1~500
size Integer 每页大小 1~500

对应SQL的操作库表

<select id="selectCount" resultType="java.lang.Integer" parameterType="com.yohobuy.platform.dal.shops.model.AppVersionRequestBO">
    select count(id) from app_version_information
    where 1=1
    <if test="appVersion != null and appVersion != ''" >
      and version like '%' #{appVersion,jdbcType=VARCHAR} '%'
    </if>

    <if test="clientType != null and clientType != ''" >
      and client_type like '%' #{clientType,jdbcType=VARCHAR} '%'
    </if>
  </select>

  <select id="selectAppVersionInformationList" resultMap="BaseResultMap">
    select
    <include refid="Base_Column_List" />
    from app_version_information
    where 1=1
    <if test="appVersion != null and appVersion != ''" >
      and version like '%' #{appVersion,jdbcType=VARCHAR} '%'
    </if>
    <if test="clientType != null and clientType != ''" >
      and client_type like '%' #{clientType,jdbcType=VARCHAR} '%'
    </if>
  </select>

响应码


响应码code 消息 说明
200 操作成功.

返回

{
  "code": 200,
  "data": {
    "list": [
      {
        "clientType": "iphone",
        "content": "你好",
        "createTime": 1463369058,
        "id": 16,
        "status": 1,
        "updateTime": 1463369058,
        "url": "http://www.yohobuy.com/",
        "version": "4.4.2"
      },
      {
        "clientType": "iphone",
        "content": "你好",
        "createTime": 1463369082,
        "id": 18,
        "status": 1,
        "updateTime": 1463369082,
        "url": "http://www.yohobuy.com/",
        "version": "4.4.2"
      }
    ],
    "page": 1,
    "size": 20,
    "total": 2,
    "totalPage": 1
  },
  "md5": "80d6bb15403dddd1c5d8d9347b3debda",
  "message": "获取列表成功."
}

根据id修改status,开启和关闭

接口名: /AppVersionRest/editAppVersion

方法

POST JSONRAW

入参


属性名称 类型 例子 说明 是否必填 长度限制
id int 152 1~11
status int 状态('0 关闭 1 开启',) 状态 0/1

对应SQL的操作库表

 <update id="updateByPrimaryKeySelective" parameterType="com.yohobuy.platform.dal.shops.model.AppVersionInformation" >
    update app_version_information
    <set >
      <if test="version != null" >
        version = #{version,jdbcType=VARCHAR},
      </if>
      <if test="clientType != null" >
        client_type = #{clientType,jdbcType=VARCHAR},
      </if>
      <if test="content != null" >
        content = #{content,jdbcType=VARCHAR},
      </if>
      <if test="url != null" >
        url = #{url,jdbcType=VARCHAR},
      </if>
      <if test="status != null" >
        status = #{status,jdbcType=TINYINT},
      </if>
      <if test="createTime != null" >
        create_time = #{createTime,jdbcType=INTEGER},
      </if>
      <if test="updateTime != null" >
        update_time = #{updateTime,jdbcType=INTEGER},
      </if>
    </set>
    where id = #{id,jdbcType=SMALLINT}
  </update>

响应码


响应码code 消息 说明
200 操作成功.

返回

{
  "alg": "SALT_MD5",
  "code": 200,
  "data": {
    "code": 200,
    "message": "修改成功"
  },
  "md5": "2ec27613a0ad9e7601d1f764a8c97eae",
  "message": "操作成功"
}

根据id删除列表中的内容

接口名: /AppVersionRest/delAppVersion

方法

POST JSONRAW

入参


属性名称 类型 例子 说明 是否必填 长度限制
id int 152 1~11

对应SQL的操作库表

 <delete id="deleteByPrimaryKey" parameterType="java.lang.Short" >
    delete from app_version_information
    where id = #{id,jdbcType=SMALLINT}
  </delete>

响应码


响应码code 消息 说明
200 操作成功.

返回

{
  "alg": "SALT_MD5",
  "code": 200,
  "data": {
    "code": 200,
    "message": "删除成功"
  },
  "md5": "2ec27613a0ad9e7601d1f764a8c97eae",
  "message": "操作成功"
}