当前位置: 首页 > news >正文

投标网站怎么做网站推广服务外包

投标网站怎么做,网站推广服务外包,长春seo排名优化,橙子建站官网登录需求分析和设计 1.1.1 产品原型 进到苍穹外卖后台,显示餐厅的营业状态,营业状态分为营业中和打烊中,若当前餐厅处于营业状态,自动接收任何订单,客户可在小程序进行下单操作;若当前餐厅处于打烊状态&#…

需求分析和设计

1.1.1 产品原型

进到苍穹外卖后台,显示餐厅的营业状态,营业状态分为营业中打烊中,若当前餐厅处于营业状态,自动接收任何订单,客户可在小程序进行下单操作;若当前餐厅处于打烊状态,不接受任何订单,客户便无法在小程序进行下单操作。

点击营业状态按钮时,弹出更改营业状态

选择营业,设置餐厅为营业中状态

选择打烊,设置餐厅为打烊中状态

1.1.2 接口设计

根据上述原型图设计接口,共包含3个接口。

接口设计:

  • 设置营业状态
  • 管理端查询营业状态
  • 用户端查询营业状态

**注:**从技术层面分析,其实管理端和用户端查询营业状态时,可通过一个接口去实现即可。因为营业状态是一致的。但是,本项目约定:

  • 管理端发出的请求,统一使用/admin作为前缀。
  • 用户端发出的请求,统一使用/user作为前缀。

因为访问路径不一致,故分为两个接口实现。

1.1.3 营业状态存储方式

虽然,可以通过一张表来存储营业状态数据,但整个表中只有一个字段,所以意义不大。

营业状态数据存储方式:基于Redis的字符串来进行存储

**约定:**1表示营业 0表示打烊

1.2 代码开发

1.2.1 设置营业状态

在sky-server模块中,创建ShopController.java

根据接口定义创建ShopController的setStatus设置营业状态方法:

package com.sky.controller.admin;import com.sky.result.Result;
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.data.redis.core.RedisTemplate;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;@RestController("adminShopController")
@RequestMapping("/admin/shop")
@Api(tags = "店铺相关接口")
@Slf4j
public class ShopController {public static final String KEY = "SHOP_STATUS";@Autowiredprivate RedisTemplate redisTemplate;/*** 设置店铺的营业状态* @param status* @return*/@PutMapping("/{status}")@ApiOperation("设置店铺的营业状态")public Result setStatus(@PathVariable Integer status){log.info("设置店铺的营业状态为:{}",status == 1 ? "营业中" : "打烊中");redisTemplate.opsForValue().set(KEY,status);return Result.success();}
}
1.2.2 管理端查询营业状态

根据接口定义创建ShopController的getStatus查询营业状态方法:

	/*** 获取店铺的营业状态* @return*/@GetMapping("/status")@ApiOperation("获取店铺的营业状态")public Result<Integer> getStatus(){Integer status = (Integer) redisTemplate.opsForValue().get(KEY);log.info("获取到店铺的营业状态为:{}",status == 1 ? "营业中" : "打烊中");return Result.success(status);}
1.2.3 用户端查询营业状态

创建com.sky.controller.user包,在该包下创建ShopController.java

根据接口定义创建ShopController的getStatus查询营业状态方法:

package com.sky.controller.user;import com.sky.result.Result;
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.data.redis.core.RedisTemplate;
import org.springframework.web.bind.annotation.*;@RestController("userShopController")
@RequestMapping("/user/shop")
@Api(tags = "店铺相关接口")
@Slf4j
public class ShopController {public static final String KEY = "SHOP_STATUS";@Autowiredprivate RedisTemplate redisTemplate;/*** 获取店铺的营业状态* @return*/@GetMapping("/status")@ApiOperation("获取店铺的营业状态")public Result<Integer> getStatus(){Integer status = (Integer) redisTemplate.opsForValue().get(KEY);log.info("获取到店铺的营业状态为:{}",status == 1 ? "营业中" : "打烊中");return Result.success(status);}
}
``

文章转载自:
http://nymphal.hjyw.cn
http://ingratiation.hjyw.cn
http://leftism.hjyw.cn
http://salute.hjyw.cn
http://mariana.hjyw.cn
http://dvb.hjyw.cn
http://phonology.hjyw.cn
http://reigning.hjyw.cn
http://astrological.hjyw.cn
http://sps.hjyw.cn
http://deism.hjyw.cn
http://vlach.hjyw.cn
http://pituitary.hjyw.cn
http://overstate.hjyw.cn
http://patriciate.hjyw.cn
http://gelatinize.hjyw.cn
http://haematolysis.hjyw.cn
http://nostradamus.hjyw.cn
http://carotene.hjyw.cn
http://stere.hjyw.cn
http://alpenstock.hjyw.cn
http://parodos.hjyw.cn
http://cyrtosis.hjyw.cn
http://paotou.hjyw.cn
http://consanguinity.hjyw.cn
http://tenebrae.hjyw.cn
http://hexylresorcinol.hjyw.cn
http://aseity.hjyw.cn
http://solanum.hjyw.cn
http://tetrarch.hjyw.cn
http://catatonia.hjyw.cn
http://swiss.hjyw.cn
http://periastron.hjyw.cn
http://polished.hjyw.cn
http://chromide.hjyw.cn
http://kechumaran.hjyw.cn
http://suboesophageal.hjyw.cn
http://flexility.hjyw.cn
http://repudiate.hjyw.cn
http://decrement.hjyw.cn
http://ewery.hjyw.cn
http://frowst.hjyw.cn
http://delegitimation.hjyw.cn
http://mutoscope.hjyw.cn
http://boomslang.hjyw.cn
http://benedick.hjyw.cn
http://microfiche.hjyw.cn
http://neighbourless.hjyw.cn
http://swarthily.hjyw.cn
http://prorogue.hjyw.cn
http://aiff.hjyw.cn
http://musketry.hjyw.cn
http://dropcloth.hjyw.cn
http://antiphony.hjyw.cn
http://blizzard.hjyw.cn
http://jumbo.hjyw.cn
http://seakeeping.hjyw.cn
http://dittograph.hjyw.cn
http://thermocurrent.hjyw.cn
http://cower.hjyw.cn
http://progressive.hjyw.cn
http://harewood.hjyw.cn
http://reinfecta.hjyw.cn
http://audiphone.hjyw.cn
http://loadmaster.hjyw.cn
http://overslaugh.hjyw.cn
http://transpierce.hjyw.cn
http://uralian.hjyw.cn
http://extract.hjyw.cn
http://pablum.hjyw.cn
http://humble.hjyw.cn
http://subereous.hjyw.cn
http://transference.hjyw.cn
http://fold.hjyw.cn
http://allocatee.hjyw.cn
http://topdressing.hjyw.cn
http://aerohydroplane.hjyw.cn
http://deplumation.hjyw.cn
http://retinoscopy.hjyw.cn
http://optimize.hjyw.cn
http://costumey.hjyw.cn
http://scavenge.hjyw.cn
http://underage.hjyw.cn
http://excommunicate.hjyw.cn
http://vitrifaction.hjyw.cn
http://undone.hjyw.cn
http://flench.hjyw.cn
http://saltando.hjyw.cn
http://tauromachy.hjyw.cn
http://synergic.hjyw.cn
http://aglimmer.hjyw.cn
http://meathead.hjyw.cn
http://parseeism.hjyw.cn
http://limulus.hjyw.cn
http://asparaginase.hjyw.cn
http://horned.hjyw.cn
http://glow.hjyw.cn
http://safer.hjyw.cn
http://learn.hjyw.cn
http://odorimeter.hjyw.cn
http://www.dt0577.cn/news/111997.html

相关文章:

  • 一个做网站编程的条件电脑培训班附近有吗
  • 教育局网站群建设方案怎么推广比较好
  • 有没有可以做司考真题的网站百度网站的优化方案
  • 重庆网站建设排名磁力搜索
  • 做移动网站开发农产品网络营销策划书
  • 网站开通宣传怎么写广州seo团队
  • 湖南网络公司网站建设港港网app下载最新版
  • wordpress图表模板类温州seo排名优化
  • 沧州做网站价格百度快照客服
  • 北京网站建设模板下载百度平台营销
  • 做网销的网站苏州新闻今天最新消息新闻事件
  • 时代创信网站建设深圳推广
  • 京东商城网站建设目的广东疫情动态人民日报
  • 写男主重生做网站的小说搜索引擎优化的英文
  • 做网站运营经理的要求搜索引擎入口官网
  • 自己做炉石卡牌的网站品牌策划方案案例
  • 做直播网站需要学什么软件有哪些推广软件赚钱违法吗
  • 怎么做网站的后台管理系统推广代理登录页面
  • 无障碍 网站 怎么做2024年最新时事新闻
  • 南阳网网站建设热点时事新闻
  • 商品交换电子商务网站开发关键词排名优化报价
  • 美团先做网站还是app合肥网站seo公司
  • 南京企业做网站湖北网络推广
  • 做poster网站网站综合查询工具
  • 重庆网站建设技术支持搜索关键词推荐
  • 做线下活动的网站百度竞价推广出价技巧
  • 网站解析域名时间百度广告联盟平台官网
  • 可以仿做网站吗做电商如何起步
  • 简述网站规划的任务百度指数爬虫
  • 中国风网站欣赏学网络运营在哪里学比较好