Back to godoc.org

Package userController

v0.0.0-...-d4ad7b1
Latest Go to latest

The latest major version is .

Published: Aug 27, 2020 | License: Apache-2.0 | Module: github.com/Biubiubiuuuu/yuepuwebsite

Index

func AddLeaveMessage

func AddLeaveMessage(c *gin.Context)

@Summary 留言 @tags 用户 @Accept application/json @Produce json @Param body body entity.LeaveMessageRequest true "body" @Success 200 {object} entity.ResponseData "desc" @Router /api/v1/other/leaveMessage [POST]

func AddPictures

func AddPictures(c *gin.Context)

@Summary 上传图集图片(单张) @tags 用户 @Accept multipart/form-data @Produce json @Param id path string true "物业信息ID" @Param image formData file false "图片" @Success 200 {object} entity.ResponseData "desc" @Router /api/v1/user/propertyInfo/{id}/picture [POST] @Security ApiKeyAuth

func AddReport

func AddReport(c *gin.Context)

@Summary 举报 @tags 用户 @Accept application/json @Produce json @Param pro_id path string true "物业信息ID" @Param body body entity.ReportRequest true "body" @Success 200 {object} entity.ResponseData "desc" @Router /api/v1/other/propertyInfo/{pro_id}/report [POST] @Security ApiKeyAuth

func DelPrictures

func DelPrictures(c *gin.Context)

@Summary 删除图片(单张) @tags 用户 @Accept application/x-www-form-urlencoded @Produce json @Param pro_id path string true "物业信息ID" @Param pri_id path string true "图片ID" @Success 200 {object} entity.ResponseData "desc" @Router /api/v1/user/propertyInfo/{pro_id}/picture/{pri_id} [DELETE] @Security ApiKeyAuth

func EditUser

func EditUser(c *gin.Context)

@Summary 修改用户信息 @tags 用户 @Accept application/json @Produce json @Param body body entity.EditUser true "body" @Success 200 {object} entity.ResponseData "desc" @Router /api/v1/user [POST] @Security ApiKeyAuth

func EditUserFindStore

func EditUserFindStore(c *gin.Context)

@Summary 修改我要找铺信息 @tags 用户 @Accept application/json @Produce json @Param body body entity.UserFindStoreRequest true "body" @Success 200 {object} entity.ResponseData "desc" @Router /api/v1/user/findStore [PUT] @Security ApiKeyAuth

func EditUserPass

func EditUserPass(c *gin.Context)

@Summary 修改用户密码 @tags 用户 @Accept application/json @Produce json @Param body body entity.EditUserPass true "body" @Success 200 {object} entity.ResponseData "desc" @Router /api/v1/user/edituserpass [POST] @Security ApiKeyAuth

func EditUserStoretransfer

func EditUserStoretransfer(c *gin.Context)

@Summary 修改店铺转让信息 @tags 用户 @Accept multipart/form-data @Produce json @Param industry_id formData string true "经营业态ID" @Param store_type_id formData string true "店铺类型" @Param idling formData bool true "可否空转" @Param area formData string true "面积(单位:平方米)" @Param in_operation formData string true "是否营业中 0-新铺 | 1-空置中 | 2-营业中" @Param rent formData string true "租金(单位:元/月)" @Param transfer_fee formData string false "转让费用(单位:万元 不录入则显示为面议)" @Param industry_ranges formData string true "适合经营范围id,多个用,拼接" @Param image formData file false "图片" @Param title formData string true "标题" @Param nickname formData string true "联系人" @Param telephone formData string true "联系手机" @Param province_code formData string true "省代码"" @Param city_code formData string true "城市代码" @Param district_code formData string true "区代码" @Param street_code formData string false "街道代码" @Param address formData string true "详细地址" @Param description formData string false "详细描述"" @Success 200 {object} entity.ResponseData "desc" @Router /api/v1/user/storetransfer [PUT] @Security ApiKeyAuth

func FindStore

func FindStore(c *gin.Context)

@Summary 我要找铺 @tags 用户 @Accept application/json @Produce json @Param body body entity.UserFindStoreRequest true "body" @Success 200 {object} entity.ResponseData "desc" @Router /api/v1/user/findStore [POST] @Security ApiKeyAuth

func Login

func Login(c *gin.Context)

@Summary 用户登录 @tags 用户 @Accept application/json @Produce json @Param body body entity.UserLogin true "body" @Success 200 {object} entity.ResponseData "desc" @Router /api/v1/user/login [POST]

func QueryAdvert

func QueryAdvert(c *gin.Context)

@Summary 广告查询 @tags 用户 @Accept application/json @Produce json @Param hot query bool false "首页最热推广" @Param floor query bool false "F楼" @Param type query string false "信息列表推广 1-一栏四分之一图片广告 | 2-二栏四分之一图片广告 | 3-三栏重点推荐 | 4-五栏框架广告" @Param industry_id query string false "行业ID" @Param pageSize query string false "页大小 (默认30)" @Param page query string false "跳转页码" @Success 200 {object} entity.ResponseData "desc" @Router /api/v1/other/advert [GET]

func QueryCarouse

func QueryCarouse(c *gin.Context)

@Summary 首页轮播 @tags 用户 @Accept application/json @Produce json @Param pageSize query string false "页大小 (默认30)" @Param page query string false "跳转页码" @Success 200 {object} entity.ResponseData "desc" @Router /api/v1/other/carouse [GET]

func QueryPropertyInfoByID

func QueryPropertyInfoByID(c *gin.Context)

@Summary 查看物业详情 @tags 物业信息 @Accept application/json @Produce json @Param id path string true "物业信息ID" @Success 200 {object} entity.ResponseData "desc" @Router /api/v1/propertyInfo/{id} [GET]

func QueryUser

func QueryUser(c *gin.Context)

@Summary 查看用户信息 @tags 用户 @Accept application/x-www-form-urlencoded @Produce json @Success 200 {object} entity.ResponseData "desc" @Router /api/v1/user [GET] @Security ApiKeyAuth

func QueryUserPropertyInfo

func QueryUserPropertyInfo(c *gin.Context)

@Summary 查看用户已发布物业信息 @tags 用户 @Accept application/x-www-form-urlencoded @Produce json @Success 200 {object} entity.ResponseData "desc" @Router /api/v1/user/propertyInfo [GET] @Security ApiKeyAuth

func Register

func Register(c *gin.Context)

@Summary 注册 @tags 用户 @Accept application/json @Produce json @Param body body entity.UserRegister true "body" @Success 200 {object} entity.ResponseData "desc" @Router /api/v1/user/register [POST]

func SearchPropertyInfo

func SearchPropertyInfo(c *gin.Context)

@Summary 根据条件获取物业信息 @tags 物业信息 @Accept application/x-www-form-urlencoded @Produce json @Param industry_id query string false "行业ID" @Param telephone query string false "联系人电话" @Param nickname query string false "联系人姓名" @Param store_type_id query string false "店铺类型ID" @Param province_code query string false "省代码" @Param city_code query string false "城市代码" @Param district_code query string false "区代码" @Param street_code query string false "街道代码" @Param area_type_id query string false "面积范围ID" @Param rent_type_id query string false "租金范围ID" @Param min_area query string false "最小面积" @Param max_area query string false "最大面积" @Param min_rent query string false "最小租金" @Param max_rent query string false "最大租金" @Param model_type query string true "模型类型 0-转让 | 1-出售 | 3-出租 | 4-求租 | 5-求购 多个用,隔开" @Param bus_type query string false "业务类型 0-商铺 | 1-写字楼 | 2-厂房仓库" @Param sort_condition query string false "排序 area-面积 | rent-租金 | created_at-发布时间(默认)" @Param created_at query string false "创建时间" @Param pageSize query string false "页大小 (默认30)" @Param page query string false "跳转页码" @Success 200 {object} entity.ResponseData "desc" @Router /api/v1/propertyInfo [GET]

func Storetransfer

func Storetransfer(c *gin.Context)

@Summary 店铺转让 @tags 用户 @Accept multipart/form-data @Produce json @Param industry_id formData string true "经营业态ID" @Param store_type_id formData string true "店铺类型" @Param idling formData bool true "可否空转" @Param area formData string true "面积(单位:平方米)" @Param rent formData string true "租金(单位:元/月)" @Param transfer_fee formData string false "转让费用(单位:万元 不录入则显示为面议)" @Param industry_ranges formData string true "适合经营范围id,多个用,拼接" @Param image formData file false "图片" @Param title formData string true "标题" @Param nickname formData string true "联系人" @Param telephone formData string true "联系手机" @Param province_code formData string true "省代码"" @Param city_code formData string true "城市代码" @Param district_code formData string true "区代码" @Param street_code formData string false "街道代码" @Param address formData string true "详细地址" @Param description formData string false "详细描述"" @Success 200 {object} entity.ResponseData "desc" @Router /api/v1/user/storetransfer [POST] @Security ApiKeyAuth

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier