Commit 52267b4b authored by Quxl's avatar Quxl

会员公共接口,基本信息接口定义

parent 38061ef9
package com.egolm.film.api;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import com.egolm.common.bean.Rjx;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
@Api
@Controller
@RequestMapping("open/member")
public class MemberOpenApiController {
@PostMapping("register")
@ApiOperation("会员注册")
@ApiImplicitParams({
@ApiImplicitParam(paramType = "query", dataType = "string", required = true, name = "username"),
@ApiImplicitParam(paramType = "query", dataType = "string", required = true, name = "password"),
@ApiImplicitParam(paramType = "query", dataType = "string", required = true, name = "email"),
})
public Object register(String username, String password, String email) {
return Rjx.jsonOk();
}
@PostMapping("getPassword")
@ApiOperation("找回密码")
@ApiImplicitParams({
@ApiImplicitParam(paramType = "query", dataType = "string", required = true, name = "email"),
})
public Object getPassword(String email) {
return Rjx.jsonOk();
}
}
package com.egolm.film.api.member;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import io.swagger.annotations.Api;
@Api
@Controller
@RequestMapping("member/apply")
public class MemberApplyController {
}
package com.egolm.film.api.member;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import com.egolm.common.bean.Rjx;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
@Api
@Controller
@RequestMapping("member/info")
public class MemberInfoController {
@PostMapping("query")
@ApiOperation("查询会员基本信息")
@ApiImplicitParams({
@ApiImplicitParam(paramType = "query", dataType = "string", required = true, name = "id"),
})
public Object query(String id) {
return Rjx.jsonOk();
}
@PostMapping("save")
@ApiOperation("保存会员基本信息")
@ApiImplicitParams({
@ApiImplicitParam(paramType = "query", dataType = "string", required = true, name = "id"),
@ApiImplicitParam(paramType = "query", dataType = "string", required = true, name = "email"),
@ApiImplicitParam(paramType = "query", dataType = "string", required = false, name = "realname"),
@ApiImplicitParam(paramType = "query", dataType = "string", required = false, name = "address"),
@ApiImplicitParam(paramType = "query", dataType = "string", required = false, name = "company"),
@ApiImplicitParam(paramType = "query", dataType = "string", required = false, name = "tel"),
})
public Object save(String id, String email, String realname, String address, String company, String tel) {
return Rjx.jsonOk();
}
}
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