10 changed files with 91 additions and 23 deletions
@ -0,0 +1,16 @@ |
|||
package awesome.group.game.service.bo.citrus; |
|||
|
|||
import awesome.group.game.dao.bean.MatrixUser; |
|||
|
|||
public class AdvResponse { |
|||
public long incrCoin;//本次获得的金币
|
|||
public long goldCoin;//可提现金币总数
|
|||
|
|||
public AdvResponse() { |
|||
} |
|||
|
|||
public AdvResponse(long incrCoin, MatrixUser u) { |
|||
this.incrCoin = incrCoin; |
|||
this.goldCoin = u.getIncome() - (u.getMoney() * 1000); |
|||
} |
|||
} |
@ -0,0 +1,23 @@ |
|||
package awesome.group.game.service.bo.citrus; |
|||
|
|||
import awesome.group.game.dao.bean.MatrixApp; |
|||
|
|||
public class AppBasicInfo extends AppCashConfig{ |
|||
public String name; |
|||
public String code; |
|||
public String img; |
|||
public String url; |
|||
public Integer version; |
|||
|
|||
public AppBasicInfo() { |
|||
} |
|||
|
|||
public AppBasicInfo(MatrixApp app) { |
|||
super(app); |
|||
this.name = app.getName(); |
|||
this.code = app.getCode(); |
|||
this.img = app.getImg(); |
|||
this.url = app.getUrl(); |
|||
this.version = app.getVersion(); |
|||
} |
|||
} |
@ -1,26 +1,11 @@ |
|||
package awesome.group.game.web.rest.citrus; |
|||
|
|||
import awesome.group.game.service.bo.citrus.AppCashConfig; |
|||
import awesome.group.game.service.citrus.CitrusAppService; |
|||
import awesome.group.game.service.common.response.R; |
|||
import awesome.group.game.web.aop.RestApi; |
|||
import io.swagger.v3.oas.annotations.Hidden; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.GetMapping; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RequestParam; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
@RestController |
|||
@RequestMapping("/api/citrus/app") |
|||
@Hidden |
|||
public class CitrusAppController { |
|||
@Autowired |
|||
private CitrusAppService appService; |
|||
|
|||
@GetMapping("/getDetail") |
|||
@RestApi |
|||
public R<AppCashConfig> getAppDetail(@RequestParam String appCode) { |
|||
return new R<>(appService.getAppDetail(appCode)); |
|||
} |
|||
} |
|||
|
Loading…
Reference in new issue